请求
curl --location 'https://openapi.gs-robot.com/openapi/v2alpha1/robotCommand/tempTask:send'
--header 'Content-Type: application/json'
--header 'authorization: Bearer {{token}}'
--data '{
"productId": "TEST00-0000-000-S001",
"tempTaskCommand": {
"cleaningMode": "清扫",
"loop": false,
"loopCount": 2,
"taskName": "test",
"mapName": "10f_cloud",
"startParam": [
{
"mapId": "41c394d4-9fa8-4b10-83c3-dd1ed639f111",
"areaId": "1"
}
]
}
}'
输出
{
"productId": "TEST00-0000-000-S001",
"requestId": "OpenApiV2:01K3NDAG9D6B900CGFHZ4GCATN:5998838a20af4f2499dbafb2cf30a179",
"orderType": "start_task",
"cmdStatus": 5,
"cmdResultCode": "6880"
}