Skip to main content
PATCH
Update an agent (structured response)
Legacy endpoint - deprecated. Unversioned endpoints are scheduled for removal on July 31, 2026. Use the /v1 version for new integrations. This endpoint remains available for existing integrations until then.
Update an existing agent; provide version_number when updating a specific version.

Endpoint

PATCH /agents2/{id} This page uses Mintlify OpenAPI rendering, including the API tester/runner, request schema, and response schema from the spec.

Updating Pipeline And Speech Settings

Single prompt agents can use either the standard Cascaded pipeline or the Speech_To_Speech pipeline. Changing pipeline_type changes which controls apply to the agent version:

Authorizations

Authorization
string
header
required

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

Headers

x-organization-id
string
required

RSA encrypted organization ID (base64 format)

Example:

"BASE64_ENCRYPTED_ORG_ID_HERE"

Path Parameters

id
string
required

ID of the agent

Body

application/json

Grouped request body. Provide version_number or current_version.number. Fallback LLM: llm.fallback.fallback_llm_enabled + llm.fallback.llm_fallback_model. PCA: analysis.postcall_analysis.

title
string
Example:

"Customer Support Agent"

llm
object
fallback_llm_enabled
boolean

Enable fallback LLM (flat alias; prefer llm.fallback.fallback_llm_enabled)

Example:

false

llm_fallback_model
string | null

Fallback LLM id (flat alias; prefer llm.fallback.llm_fallback_model)

Example:

"abc123xyz789ab"

llm_fallback_delay_ms
number | null

Fallback delay ms (flat alias; prefer llm.fallback.llm_fallback_delay_ms)

Example:

500

analysis
object

Post-call analysis (PCA) fields for the agent version

version_number
number

Agent version number to update

Example:

1

is_published
boolean

Publish this agent version

Example:

false

update_deployment
boolean

Allow updating an already-published version

Example:

false

Response

200 - application/json

Agent updated; current_version includes llm.fallback and flat fallback fields

number
number
required
Example:

0

is_published
boolean
required
Example:

false

llm
object
fallback_llm_enabled
boolean
Example:

false

llm_fallback_model
string | null
Example:

"llm_abc123xyz789ab"

fall_back_llm_id
string | null
Example:

"llm_abc123xyz789ab"

llm_fallback_delay_ms
number | null
Example:

500

transcriber_id
string | null
Example:

"tr0deepnova3xx"

analysis
object