Request
curl --location 'https://openapi.gs-robot.com/openapi/v3/schedules/plans/simple/update' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{token}}' \
--data '{
"dayOfMonth": 29,
"month": 8,
"operationType": 2,
"planStartTime": "11:00",
"planStopTime": "12:00",
"planUuid": "00000000-0000-4000-8000-000000000001",
"robotSn": "TEST00-0000-000-B088",
"taskName": "Weekday cleaning schedule (updated)",
"year": 2026
}'
Version requirement: This API is supported only on AIO software version 1.6 and later.
Notes
- This API supports partial updates. Apart from
robotSn,planUuid,operationType,year,month, anddayOfMonth, send only fields that need to change. Omitted business fields retain their existing values; sendingnullis not recommended. year,month, anddayOfMonthonly identify the target date.operationType=1updates only that date, whileoperationType=2updates that date and all future schedules.- If supplied,
mapResourceListreplaces the entire existing list. Every item requiresmapId,mapResourceId, andmapResourceType, using actual values from/openapi/v3/maps/schedule-resources/list. - If supplied,
workMode.modeis required and all fields must be based on the actual resource-query response. Ifmodealone is ambiguous, also sendsubType,type, orstrength. taskAdvanceConfigis merged by child field; omitted child fields retain their existing values.- Mutation APIs use integer
planExecuteType:1for a timed task or2for a quantitative task. For a quantitative task, send"planStopTime": ""to clear the existing end time. A timed task cannot have an empty end time. - Times use
HH:mmin 24-hour format. A non-empty end time must be later than the start time; crossing midnight is not supported.
Response
{
"code": 0,
"data": {},
"msg": "success"
}