Skip to main content
PUT
/
agent
/
{id}
/
dictionaries
Replace the agent's attached dictionaries
curl --request PUT \
  --url https://api.vocobase.com/api/v2/agent/{id}/dictionaries \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dictionary_ids": [
    "d1234567-abcd-1234-abcd-123456789012"
  ]
}
'
{
  "success": true,
  "data": {
    "dictionaries": [
      {
        "id": "d1234567-abcd-1234-abcd-123456789012",
        "name": "Vocobase Product Catalog",
        "term_count": 5,
        "char_count": 52,
        "attached_agent_count": 1,
        "created_at": "2026-04-24T10:30:00.000Z",
        "updated_at": "2026-04-24T10:30:00.000Z"
      }
    ]
  }
}

Authorizations

Authorization
string
header
required

API key in format: rg_live_xxxx. Pass as a Bearer token in the Authorization header.

Path Parameters

id
string<uuid>
required

Agent ID.

Body

application/json
dictionary_ids
string<uuid>[]
required

Full replacement set of dictionary IDs. Pass [] to detach all.

Response

Agent's attached dictionaries after the swap.

success
boolean
data
object