- README
- Update Record
- token
- customer
- device
- fence
- push
- video
- alarm
- audio
- gallery
- fleet
- gps
- Protocol AnalysisPOST
commandSend
Singapore
Singapore
POST
/v2/openapi/device/command/send
Request
Header Params
Authorization
string
required
Body Params application/json
deviceId
string | null
required
commandText
string | null
required
subProtocol
string | null
required
type
string | null
required
Example
{
"deviceId": "string",
"commandText": "string",
"subProtocol": "string",
"type": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://mettahub.mettaxiot.com/gps/v2/openapi/device/command/send' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"deviceId": "string",
"commandText": "string",
"subProtocol": "string",
"type": "string"
}'
Responses
🟢200Success
application/json
Body
CommonResult<String> commandId
code
integer | null
optional
data
string | null
optional
msg
string | null
optional
Example
{
"code": 0,
"data": "",
"msg": ""
}
Modified at 2024-09-26 03:15:34