Skip to main content
Changes an agent’s setup. Only what the body gives changes. Each change is logged in the agent’s activity as made by API · <key name>. The AI key an agent uses is chosen on the panel only: a body with credential is refused. A new model must be one the agent’s key allows, and changing it means the agent must be verified again — a live agent goes back to draft until then. A draft agent whose key and model are verified becomes ready.
Needs the agents:write scope.

Body

Request

Response

200 OK — the agent as it is now, in the shape GET /v1/agents/{agent_id} answers.

Errors

Every refusal is {"error": {"code", "message", "field"}}; field is there when one input is at fault. Any request can also be refused for its key, its account or its rate (key_required, invalid_key, account_suspended, plan_excludes_api, address_not_allowed, rate_limited); see the overview.