Update agent
update_agentUpdate an existing Gumloop agent by changing only specified fields; omitted fields remain untouched.
Instructions
Update an existing agent. Only fields included in the request body are changed; omitted fields are left untouched.
This endpoint edits document fields only. To attach or detach skills, use PATCH /agents/{agent_id}/skills; to manage MCP servers, use the agent MCP server endpoints.
is_active: false is not a pause switch. It retires the agent: the agent disappears from GET /agents, and both GET and PATCH /agents/{agent_id} return 404 afterwards, so you cannot set it back to true through the API. To stop an agent from running on its own while keeping it fully reachable, disable its triggers instead.
Explicit confirmation is required for this exact account operation. Runs can spend credits or trigger downstream actions; never resubmit unknown outcomes automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| tools | No | When provided, replaces the agent's tool list. | |
| account | No | Named private Gumloop account; selects private credentials and user/team identity. | |
| confirm | No | Set true only when the user asked for exactly this action. | |
| payload | No | Complete JSON request body instead of body flags. Preserves current endpoint fields and values. | |
| team_id | No | When provided, transfers ownership of the agent to this team. | |
| agent_id | Yes | ID of the agent to update. Also accepts the reserved aliases `gumball` and `analytics`. | |
| metadata | No | ||
| is_active | No | ||
| resources | No | When provided, replaces the agent's resource list. | |
| model_name | No | ID of the LLM the agent runs on. Use `GET /models` to discover valid values. | |
| description | No | ||
| payload_file | No | Regular local JSON body file, at most 5 MB. Cannot be mixed with body flags or payload. | |
| system_prompt | No |