Skip to main content
PATCH
Send any of name, model, managed_by and the run-rule fields — an empty body is rejected. Renaming a category rewrites the category label on all of its dispositions in the same transaction. Changing model switches the LLM used for the category’s extraction pass on subsequent calls.
Only the fields you send change, and an explicit null clears a rule field. To switch a category between starting category and follow-up, clear the old kind’s fields in the same request. A change that would break a follow-up is refused with 400 and a message to show as is. Rule changes apply to calls that end after the update. See Run rules.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

category_id
string<uuid>
required

The category to update.

Body

application/json

Fields to update on the category.

Request body for updating an extraction category. Only included fields are changed, but at least one field must be present — an empty body is rejected. An explicit null clears a rule field. Renaming a category rewrites the category label on all of its dispositions in the same transaction.

name
string

New category name. Must be unique among the agent's attached categories.

Example:

"Conversion Signals"

model
enum<string>

New LLM model for the category's extraction pass.

Available options:
gpt-4.1-mini,
gpt-4.1-nano,
gpt-4o-mini,
gpt-5-mini,
gpt-5-nano,
gpt-5.4-mini,
gpt-5.6-luna,
gpt-6-luna,
azure/gpt-4.1-mini,
azure/gpt-4.1-nano,
azure/gpt-4o-mini,
azure/gpt-5-mini,
azure/gpt-5.4-mini,
azure/gpt-5.4-nano,
azure/gpt-5.6-luna,
gemini-3.5-flash,
gemini-3.5-flash-lite
Example:

"gpt-4.1-mini"

managed_by
enum<string>

Whose LLM key runs the category's pass, bolna (Bolna's) or user (the account's own).

Available options:
bolna,
user
min_duration_s
integer | null

Start rule. Skip the category on calls shorter than this many seconds, measured as the duration shown in call history. null removes the minimum. Not allowed on a follow-up.

Required range: 1 <= x <= 86400
skip_voicemail
boolean | null

Start rule. true skips the category on calls that ended on voicemail, caught by Bolna's voicemail detection or the carrier's answering-machine detection; false or null turns it off. Not allowed on a follow-up.

parent_disposition_id
string<uuid> | null

Makes the category a follow-up of this objective disposition, in another of the agent's categories. Send it with match_mode and match_values, and clear min_duration_s and skip_voicemail in the same request. null makes the category a starting category; clear match_mode and match_values with it.

match_mode
enum<string> | null

Follow-ups only. in runs the category only when the parent's objective answer is one of match_values; not_in skips it when it is.

Available options:
in,
not_in
match_values
string[] | null

Follow-ups only. Answers to check, matched exactly. Each must be one of the parent disposition's objective_options values, sub-options included. A listed value also covers the sub-options under it.

Minimum array length: 1

Response

Category updated

A named set of dispositions evaluated together in a single LLM pass. The category owns the model used for that pass.

id
string<uuid>

Unique identifier for the category.

Example:

"9b2e8f10-4c7d-4e2a-9f31-6a8d5c1b0e42"

name
string

Category name. Unique among the categories attached to the same agent.

Example:

"Lead Quality"

model
string

LLM model used for the category's extraction pass. Applies to every disposition in the category.

Example:

"gpt-4.1-mini"

agent_id
string<uuid>

The agent this category is attached to.

Example:

"123e4567-e89b-12d3-a456-426614174000"

created_at
string<date-time>

ISO timestamp when the category was created.

Example:

"2026-03-01T10:00:00Z"

updated_at
string<date-time>

ISO timestamp when the category was last updated.

Example:

"2026-03-15T14:30:00Z"

min_duration_s
integer | null

Start rule. The category is skipped on calls shorter than this many seconds. null when not set.

Example:

null

skip_voicemail
boolean

Start rule. true skips the category on calls that ended on voicemail, caught by Bolna's voicemail detection or the carrier's answering-machine detection. false when not set.

Example:

false

parent_disposition_id
string<uuid> | null

Follow-ups only. The objective disposition, in another of the agent's categories, that this category runs after. null for a starting category.

Example:

"3fa85f64-5717-4562-b3fc-2c963f66afa6"

match_mode
enum<string> | null

Follow-ups only. in runs the category only when the parent's answer is one of match_values; not_in skips it when it is. null for a starting category.

Available options:
in,
not_in
Example:

"not_in"

match_values
string[] | null

Follow-ups only. The parent answers match_mode checks. null for a starting category.

Example: