Superadmin APIs/Device Commands
Send Command (by IMEI path)
POST
/superadmin/vehicles/by-imei/:imei/send-commandBearer token required
SUPERADMINContent-Type:
application/jsonPath Parameters
| Name | Type | Required | Description |
|---|---|---|---|
imei | string | Required |
Request Body
| Name | Type | Required | Description |
|---|---|---|---|
command | string | Required | |
note | string | Optional |
Request Example
JSON
{
"command": "RELAY,1#",
"note": "Cut engine for vehicle ABC-123"
}Response Example
200 OK
{
"action": true,
"message": "Command sent",
"data": {
"cmdId": "cmd-uuid-123"
}
}Code Examples
curl -X POST 'https://<your-domain>:3001/superadmin/vehicles/by-imei/:imei/send-command' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"command": "RELAY,1#",
"note": "Cut engine for vehicle ABC-123"
}'