请求
curl --location 'https://openapi.gs-robot.com/openapi/v1/map/subareas/get' --header 'authority: developer.gs-robot.com' --header 'accept: */*' --header 'accept-language: zh-CN,zh;q=0.9' --header 'access-control-request-headers: authorization' --header 'access-control-request-method: GET' --header 'cache-control: no-cache' --header 'origin: https://developer.gs-robot.com' --header 'pragma: no-cache' --header 'referer: https://developer.gs-robot.com/' --header 'sec-fetch-dest: empty' --header 'sec-fetch-mode: cors' --header 'sec-fetch-site: same-site' --header 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36' --header 'Content-Type: application/json' --data '{
"mapId": "9e729d70-6b4d-11ef-bb56-cd84add528b1",
"robotSn": "GS008-0180-C7P-xxxx"
}'
成功响应
{
"code": 0,
"msg": "SUCCESS",
"data": {
"mapId": "9e729d70-6b4d-11ef-bb56-cd84add528b1",
"subareas": {
"partitions": [{
"id": 1,
"name": "default1"
}]
}
}
}
参数不正确的错误响应
{
"code": 3,
"msg": "INVALID_ARGUMENT",
"data": {}
}
无机器人的权限时的错误响应
{
"code": 7,
"msg": "PERMISSION_DENIED",
"data": {}
}
限流时的错误响应
{
"code": 8,
"msg": "RESOURCE_EXHAUSTED",
"data": {}
}
系统异常时的错误响应
{
"code": 13,
"msg": "INTERNAL",
"data": {}
}