Update configuration key naming convention to use snake_case consistently. Applies changes recursively across all subdirectories.
46 lines
754 B
Plaintext
46 lines
754 B
Plaintext
meta {
|
|
name: Delete Device
|
|
type: http
|
|
seq: 6
|
|
}
|
|
|
|
delete {
|
|
url: {{base_url}}/api/devices/{{deviceId}}
|
|
body: none
|
|
auth: inherit
|
|
}
|
|
|
|
headers {
|
|
Authorization: Bearer {{token}}
|
|
}
|
|
|
|
settings {
|
|
encodeUrl: true
|
|
timeout: 0
|
|
}
|
|
|
|
docs {
|
|
## Delete Device
|
|
|
|
Deletes a device and unregisters it from the user's account.
|
|
|
|
**Method:** DELETE
|
|
|
|
**Endpoint:** /api/devices/{deviceId}
|
|
|
|
**Authentication:** Bearer token
|
|
|
|
**Path Parameters:**
|
|
- `deviceId` (string): Device UUID
|
|
|
|
**Response:** 204 No Content on success
|
|
|
|
**Status Codes:**
|
|
- 204: Success - device deleted
|
|
- 401: Unauthorized
|
|
- 404: Device not found
|
|
- 500: Internal server error
|
|
|
|
**Note:** This action cannot be undone. All device data and sync history will be removed.
|
|
}
|