Superadmin APIs/Master Data Catalogs
Create Custom Command
POST
/superadmin/customcommandsBearer token required
SUPERADMINContent-Type:
application/jsonRequest Example
JSON
{
"deviceTypeId": 1,
"commandTypeId": 2,
"command": "RELAY,1#",
"isActive": true
}Code Examples
curl -X POST 'https://<your-domain>:3001/superadmin/customcommands' \
-H 'Authorization: Bearer <token>' \
-H 'Content-Type: application/json' \
-d '{
"deviceTypeId": 1,
"commandTypeId": 2,
"command": "RELAY,1#",
"isActive": true
}'