Delete device
DELETE
/api/v1/devices/{id}
const url = 'http://localhost:3000/api/v1/devices/550e8400-e29b-41d4-a716-446655440000';const options = {method: 'DELETE', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url http://localhost:3000/api/v1/devices/550e8400-e29b-41d4-a716-446655440000 \ --header 'X-API-Key: <X-API-Key>'Soft deletes a device. The device can be restored if needed.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
string format: uuid
Example
550e8400-e29b-41d4-a716-446655440000Device UUID
Responses
Section titled “ Responses ”Device deleted successfully
Unauthorized - Invalid or missing authentication
Forbidden - Insufficient permissions
Device not found