Skip to main content
PATCH
Update Task Agent
This is an alias. PATCH /api/tasks/{id} and PATCH /api/goal-bots/{id} are the same route.
Send only the fields you want to change — anything omitted keeps its current value. Array fields replace the stored array, so send the complete set.

Authentication

Pass your workspace API key as a Bearer token, or use a Clerk session token.

Path parameter

string
required
The agent id. A malformed id returns 400 Invalid id.

Request body

Every field is optional; unknown fields are ignored.
string
Display name.
string
The instructions the model runs on.
string[]
Replaces the tag list that wakes this agent.
string[]
Replaces the exclusion list.
string
autopilot, copilot, manual, or the legacy alias draft. Omit to leave unchanged. An unrecognised value is stored as copilot rather than rejected.
string
active or paused. Anything other than "paused" is read as active.
string
calendly or ghl_calendar.
string
always or auto. On PATCH, anything other than the exact string "always" is stored as "auto" — the mirror of create, so send "always" explicitly when that is what you want.
string
Free-text tone hint.
boolean
Only an explicit false turns it off.
boolean
Only an explicit false turns it off.
number
Clamped to 1–20; a non-numeric value falls back to 8.
string
Tag applied when the agent finishes.
boolean
Only an explicit true enables it.
string[]
Replaces the allowed-tool list.
string[]
Replaces the collect list.

Example

Success (200 OK)


Errors