routes.setStart

Save where a worker starts the day (their home or a yard), or with no person_id the shop's yard, used when a worker has none. Owner or office for anyone; a worker for themselves. A worker's own start is seen only by them and the owner or office.

WhoAgents can call this
RESTPOST /v1/routes/setStart
MCP toolroutes_setStart
Writesyes, send an Idempotency-Key
AreaShop

When to use it

Save where a worker starts the day (their home or a yard), or with no person_id the shop's yard, used when a worker has none. Owner or office for anyone; a worker for themselves.

What to tell the owner

Say what you did in plain words and what happens next.

Input

FieldTypeRequired
shop_idstring (uuid)yes
person_idstring (uuid)no
labelstringyes
latnumberyes
lngnumberyes
sourcestring (one of agent, typed)no

Example

POST https://doingwork.work/v1/routes/setStart
content-type: application/json
Idempotency-Key: 3f1c...

{
  "shop_id": "00000000-0000-4000-8000-000000000000",
  "label": "...",
  "lat": "...",
  "lng": "..."
}

Output

JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are {code, message, status}.

Errors

CodeStatusWhat to do
invalid_input, invalid_token, rate_limitedCan happen on any call. See errors.