Agents
Patch Update to Voice AI Agent API
Learn how to partially update properties. Update Bolna Voice AI agent name, welcome message, webhook URL, voice settings, calling guardrails, telephony provider, and prompts, using this endpoint.
PATCH
cURL
Partially update an existing agent. Unlike the full update (
You can also combine multiple attributes in a single request:
PUT), which replaces the entire agent configuration, PATCH only touches the attributes you include in the request body — everything else is left unchanged.
Returns HTTP 200 with { "message": "success", "state": "updated" }.
Updatable attributes
Only the following attributes can be updated viaPATCH. Any other field in the body is ignored.
All agent-config attributes go inside the
agent_config object. agent_prompts is a top-level key, a sibling of agent_config.calling_guardrails
Restrict when your agent places outbound calls. Calls triggered outside the allowed window are automatically rescheduled to the next allowed start time in the recipient’s timezone. It accepts two keys:Update calling guardrails
Hours use 24-hour format:
0 = midnight, 9 = 9 AM, 17 = 5 PM, 21 = 9 PM. See the Calling Guardrails guide for rescheduling behavior and regional calling regulations.telephony_provider
Switch the telephony provider the agent uses. When changed, the agent’s audio input/output format is updated automatically to match the provider (wav for twilio/plivo/exotel/vobiz, ulaw for sip-trunk).
Accepted values: twilio, plivo, exotel, vobiz, sip-trunk, default.
Switch to SIP trunk
If you patch
telephony_provider to sip-trunk, the next step is to set the inbound agent so your SIP trunk phone number maps to this agent for receiving inbound calls.Examples
Combined patch
200 Response
Next steps
Full update (PUT)
Replace the entire agent configuration, tasks, and prompts.
Calling Guardrails
Control outbound call timing and rescheduling.
Set inbound agent
Map a phone number to an agent for inbound calls.
Webhooks
Receive call results without polling.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Body
application/json
Update an agent
Response
agent status response
Previous
List agentsList all Voice AI agents under your account, along with their names, statuses, and creation dates, using Bolna APIs.
Next
cURL

