Update an agent
Agents
Update an agent
Replace the configuration of an agent in your catalog.
PUT
Update an agent
Updates an existing agent. This is a full replacement of the Agent object. The
name must match the URL identifier: renames are not supported.
Returns the updated Agent object.
Path parameters
The agent’s
name (e.g. my-research-bot or myorg/web-helper). Slash-containing names are supported.Request body
A full replacement of the Agent object. Thename in the body must equal the URL identifier. Any field you omit is reset to its default, not preserved: leaving out instructions, model, skills, or answer_format clears them. To change individual fields without resending the rest, use Patch instead.
Examples
Response
Errors
| Status | Cause |
|---|---|
400 | The name in the body does not match the URL identifier (renames are not supported). |
403 | The agent is reserved (h/) and read-only. |
404 | Agent not found or you don’t have access. |
422 | Body fails validation; common cases: environments empty, invalid name shape. |