Request
curl --location 'https://openapi.gs-robot.com/openapi/v3/maps/schedule-resources/list' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{token}}' \
--data '{
"includePaths": true,
"includePositions": false,
"includeRegions": true,
"mapIdList": [
"140bbb83-fe48-4282-be25-c48252b9c660"
],
"robotSn": "TEST00-0000-000-B088"
}'
Version requirement: This API is supported only on AIO software version 1.6 and later.
Notes
supportedActionscontains only the intersection of resource actions and the robot's available WorkModes; it can be an empty array when no action matches.- Except for success code
0, failed responses use six-digitcodevalues according to the unified error-code specification.
Response
{
"code": 0,
"data": {
"maps": [
{
"mapId": "140bbb83-fe48-4282-be25-c48252b9c660",
"paths": [
{
"mapResourceAreaId": "1",
"mapResourceId": "327594d9-df72-4950-94b2-64e6d02abdfb",
"mapResourceName": "area1",
"mapResourceType": "region",
"supportedActions": [
"wash"
]
}
],
"positions": [
{
"mapResourceAreaId": "1",
"mapResourceId": "327594d9-df72-4950-94b2-64e6d02abdfb",
"mapResourceName": "area1",
"mapResourceType": "region",
"supportedActions": [
"wash"
]
}
],
"regions": [
{
"mapResourceAreaId": "1",
"mapResourceId": "327594d9-df72-4950-94b2-64e6d02abdfb",
"mapResourceName": "area1",
"mapResourceType": "region",
"supportedActions": [
"wash"
]
}
],
"robotMapUuid": "140bbb83-fe48-4282-be25-c48252b9c660"
}
],
"robotSn": "TEST00-0000-000-B088",
"workModes": [
{
"configType": "strength",
"defaultStrength": "middle",
"hasStrength": true,
"id": "wm-1",
"mode": "wash",
"recommended": true,
"strengthOptions": [
"middle"
],
"subTaskEnabled": false,
"subType": "wash",
"type": 0
}
]
},
"msg": "success"
}