请求
curl --location 'https://openapi.staging.gs-robot.com/openapi/v2alpha1/site/submitTask'
--header 'Content-Type: application/json'
--header 'Authorization: Bearer {{token}}'
--data '{
"cleaningMode": "清扫",
"loopCount": 1,
"siteId": "84c5535d-aeb2-11ee-a80f-8538ffbd60ad",
"siteName": "AIO-1.1-S-floor-01",
"taskName": "area1",
"floors": [
{
"index": 11,
"name": "10",
"mapId": "86c2598d-5c9d-437b-92e0-ef1aafd01cfd",
"area": {
"id": "1",
"name": "area1"
}
}
],
"tasks": [
{
"mapId": "86c2598d-5c9d-437b-92e0-ef1aafd01cfd",
"subTasks": [
{
"mapId": "86c2598d-5c9d-437b-92e0-ef1aafd01cfd",
"areaId": "1"
}
]
}
],
"serialNumber": "TEST00-0000-000-S002"
}'
输出
{
"productId": "TEST00-0000-000-S002",
"requestId": "OpenApiV2:01HFY3YJNQFDVD6C7NDDY1DFK6:913379f72c5ccc1d418224c2b6bd0f87",
"orderType": "start_task",
"cmdStatus": 5,
"cmdResultCode": "6880"
}