Admin APIs/Device Management
Update Device
PATCH
/admin/devices/:idBearer token required
ADMINContent-Type:
application/jsonPath Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | number | Required |
Request Example
JSON
{
"simId": 10,
"deviceTypeId": 2,
"isActive": true,
"status": "IN_USE"
}Code Examples
curl -X PATCH 'https://<your-domain>:3001/admin/devices/:id' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"simId": 10,
"deviceTypeId": 2,
"isActive": true,
"status": "IN_USE"
}'