Agents · API Reference

Update Agent

Partially updates an agent. Only the top-level fields you send (`name`, `config`) are changed — omitted top-level fields keep their current value. When you send `config`, it fully replaces the existing config object, so send the complete config you want. On success a new version is created, incrementing `currentVersion`. Changing `config.model` derives the new mode automatically.

PATCH/v1/agents/{id}
Scope:agents:write
Path Parameters
id
stringrequired

The agent ID to update.

Request Body
name
stringoptional

New display name.

config
objectoptional

Replacement config. This fully replaces the existing config — send every field you want to keep.

Responses
{
  "id": "agt_xxxxxxxxxxxx",
  "productId": "prd_xxxxxxxxxxxx",
  "name": "Updated Agent Name",
  "config": {
    "model": "nirwana-1-flash",
    "voiceId": "asha",
    "firstMessage": "Hi, how can I help today?"
  },
  "currentVersion": 4,
  "updatedAt": "2025-05-27T10:00:00Z"
}
PlaygroundPATCH
Authorization

Path

{id}required

Body

nameoptional
configoptional