Skip to main content
POST
Update Agent

Authentication

Requires JWT token or Platform API key via Authorization: Bearer <token> header.
string
required
Agent UUID
string
New agent name (1-100 characters)
string
New description (max 500 characters)
string
New persistent volume size (e.g., “2Gi”, “10Gi”)
string
New system prompt
string
How to apply the system prompt: replace or append
number
Set agent output token balance directly
string
Session lifecycle mode: ephemeral or persistent
number
Idle grace period (ms) before pod scales to zero. Min: 300000 (5 min). null = never scale down.
string
Discord bot token (max 200 chars). Set to null to clear.
object
Slack credentials: { bot_token, signing_secret, app_token }. Set to null to clear.
string
Telegram bot token (max 200 chars). Set to null to clear.
object
Configuration updates (partial update supported)
object
File operations to perform on the agent workspace

Configuration Object

All configuration fields are optional. Only provided fields will be updated.

Compaction Updates

Hook Messages Updates

Each hook can be updated independently:

File Operations

The files object allows you to add, update, or delete files in the agent workspace within a single request.

File Object

Example: Update Configuration

Example: Update Files and Configuration

Example: Configure Bot Tokens

Example Response

Status Codes

Notes

  • Partial updates: Only provide the fields you want to change
  • Bot tokens: Setting a bot token to null clears the configuration but doesn’t unlink existing channel bindings
  • PVC size: Can only be increased, not decreased
  • Configuration merging: Configuration updates are merged with existing settings (not replaced entirely)
  • File operations: All file operations in a single request are applied atomically