Update an existing agent’s configuration.
Authorization: Bearer <token> header.
replace or appendephemeral or persistentnull = never scale down.null to clear.{ bot_token, signing_secret, app_token }. Set to null to clear.null to clear.| Field | Type | Description |
|---|---|---|
timeout_seconds | number | New task timeout in seconds |
model | string | New model name to use |
mcp_servers | object | Updated MCP server configurations |
compaction | object | Updated compaction configuration |
custom_env | object | Updated custom environment variables (max 20 entries) |
unread_reminder_interval_ms | number | How often (ms) to remind agent about unread messages (10000-3600000) |
hook_messages | object | Updated lifecycle prompt templates |
| Field | Type | Description |
|---|---|---|
enabled | boolean | Enable/disable context compaction |
threshold_trigger | number | Input token threshold (50000-180000) |
model | string | Model for summarization |
instructions | string | Custom compaction prompt (max 2000 chars) |
| Hook | Description |
|---|---|
channel_message_received | Prompt when new messages arrive |
unread_message_reminder | Periodic reminder for unread messages |
interrupt | Prompt when messages interrupt active session |
session_restart | Message injected when agent pod restarts |
compaction_summarize | Instructions for compaction summarization |
compaction_continuation | Prompt after compaction to continue work |
session_resume_fallback | Fallback when resuming without user input |
files object allows you to add, update, or delete files in the agent workspace within a single request.
| Field | Type | Description |
|---|---|---|
add | array | Files to add (each with path, content, and optional encoding) |
update | array | Files to update (each with path, content, and optional encoding) |
delete | array | File paths to delete (array of strings) |
| Field | Type | Required | Description |
|---|---|---|---|
path | string | ✅ | File path in the agent workspace |
content | string | ✅ | File content |
encoding | string | ❌ | Content encoding: utf-8 (default) or base64 |
| Code | Description |
|---|---|
200 | Agent updated successfully |
400 | Invalid request (validation error) |
401 | Unauthorized - invalid or missing authentication |
403 | AI Agents feature not enabled for your account |
404 | Agent not found |
null clears the configuration but doesn’t unlink existing channel bindings