maintenance.setVisits

Change how many visits a plan covers each term, and what they are called (owner or office). Applies from the next term. Pass this_term true to also add them now to the current term when it has none yet.

WhoAgents can call this
RESTPOST /v1/maintenance-plans/visits
MCP toolmaintenance_setVisits
Writesyes, send an Idempotency-Key
AreaScheduling and visits

When to use it

Change how many visits a plan covers each term, and what they are called (owner or office). Applies from the next term.

What to tell the owner

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

Input

FieldTypeRequired
plan_idstring (uuid)yes
visits_per_termintegeryes
visit_titlestringno
this_termbooleanno

Example

POST https://doingwork.work/v1/maintenance-plans/visits
content-type: application/json
Idempotency-Key: 3f1c...

{
  "plan_id": "00000000-0000-4000-8000-000000000000",
  "visits_per_term": 1
}

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.