Updates one or more fields on an existing agent. Fields you omit are left unchanged — an empty body is a no-op.Documentation Index
Fetch the complete documentation index at: https://docs.litellm-agent-platform.ai/llms.txt
Use this file to discover all available pages before exploring further.
Request
| Header | Value |
|---|---|
Authorization | Bearer <MASTER_KEY> |
Content-Type | application/json |
Path parameters
The unique ID of the agent to update.
Body parameters
All fields are optional. Include only the fields you want to change.New human-readable name for the agent.
New system prompt. Replaces the existing prompt entirely. To append a skill, use the attach skill endpoint instead.
New LiteLLM model string, e.g.
anthropic/claude-opus-4-7. Takes effect on the next session create.New default Git branch. Takes effect on the next session create.
New profile picture URL.
New list of MCP server connection strings. Replaces the existing list.
Override the container image for the agent’s harness. Useful for pinning a specific image version. If omitted, the platform resolves the image from the environment’s
K8S_HARNESS_IMAGE* variables at session create time.Replaces the agent’s entire env var map. The new map must satisfy the same constraints as agent creation (max 50 keys, ≤ 16 KB, no reserved keys).
Response
Returns the updatedApiAgent object. See List agents for the full field reference.