# Please replace the entry point with yours according to your region
curl --location 'https://global-openapi.orionstar.com/v1/robot/pipe/cmd_poweroff' \
--header 'Authorization: Bearer YOUR-ACCESS-TOKEN' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'robot_sn=test_sn'
Parameter | Type | Description |
result_list | array | An array of objects containing information about the results of command submissions to robots. Each element in the array is an object representing the result of a command submission. Please refer to Robot Command Submission Result Information Object for details. |
Parameter | Type | Description |
ret | string | Error code of the submission result. 0 indicates success, non-zero indicates failure. |
msg | string | Error description of the submission result. A specific error description is provided in case of failure. |
msg_id | string | Global unique ID of the command message |
robot | object | Basic information object of the robot |
robot.robot_sn | string | Robot SN, used for corresponding with the robot_sn passed in batch command submission scenarios (where multiple SNs are passed as request parameters) and the SN of the requested robot. |
Response Body Example
{
"code": 0,
"msg": "",
"data" : {
"result_list": [
{
"ret": "0",
"msg": "",
"msg_id": "test_msg_id",
"robot": {
"robot_sn": "test_sn",
}
},
// ... Other information about command submission results for robots
]
}
}