- get_device_queue_stats.md - Get queue statistics for device - list_device_queue_items.md - List queue items with filtering - retry_queue_item.md - Retry failed queue items - delete_queue_item.md - Delete queue items - clear_device_queue.md - Clear entire device queue - list_all_queue_items.md - List all queue items (admin) Documents sync queue management for handling failed/queued operations between devices and server
42 lines
883 B
Markdown
42 lines
883 B
Markdown
# Delete Device
|
|
|
|
Delete a device and revoke its access.
|
|
|
|
**Endpoint**: `DELETE /api/devices/:id`
|
|
**Auth**: Required
|
|
|
|
## Path Parameters
|
|
|
|
| Parameter | Type | Required | Description |
|
|
|-----------|------|-----------|-------------|
|
|
| id | string (UUID) | Yes | Device UUID |
|
|
|
|
## Request Headers
|
|
|
|
| Header | Type | Required | Description |
|
|
|--------|------|-----------|-------------|
|
|
| Authorization | string | Yes | Bearer token |
|
|
|
|
### Example Request
|
|
|
|
```http
|
|
DELETE /api/devices/550e8400-e29b-41d4-a716-446655440000
|
|
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
|
|
```
|
|
|
|
## Response (204 No Content)
|
|
|
|
Device deleted successfully.
|
|
|
|
## Error Responses
|
|
|
|
| Code | Description |
|
|
|------|-------------|
|
|
| 401 | Invalid or expired token |
|
|
| 403 | Device does not belong to user |
|
|
| 404 | Device not found |
|
|
|
|
## Try It Out
|
|
|
|
<!-- API Explorer will be inserted here in Phase 3 -->
|