The Update Voice Agent API uses the same request/response shape as Create Voice Agent, but you must include agent_id to identify which agent to update. Only agent_id is required — include any other fields you want to change, including status to draft, publish, or delete the agent.
Pass status on its own (just agent_id + status) to draft, publish, or delete the agent without touching anything else:
{ "agent_id": 123, "status": 1}
Code
Meaning
1
Publish — the agent can place and receive calls
2
Delete (soft delete) — also releases every phone number assigned to the agent
3
Unpublish — moves the agent back to Draft
New agents are created in Draft (status: 3) by default — see Create Voice Agent. Publishing (status: 1) a voice agent (AGENT_TYPE = 3) requires it to already have at least one active, workspace-owned phone number attached — see Attach Phone Number. Numbers from a shared/global provider don’t count.
# Update agent using agent_id in request bodycurl -X POST https://www.tryunleashx.com/api/v1/global/create-agent \ -H "Content-Type: application/json" \ -H "token: your_api_token_here" \ -d '{ "agent_id": 123, "agent_name": "Updated Support Agent", "prompt": "You are an updated helpful support agent.", "voice": { "provider": "elevenlabs", "voice_id": "RXe6OFmxoC0nlSWpuCDy" } }'
# Or using agent_id as query parametercurl -X POST "https://www.tryunleashx.com/api/v1/global/create-agent?agent_id=123" \ -H "Content-Type: application/json" \ -H "token: your_api_token_here" \ -d '{ "agent_name": "Updated Support Agent", "prompt": "You are an updated helpful support agent." }'
# Publish the agent (status only, no other fields changed)curl -X POST https://www.tryunleashx.com/api/v1/global/create-agent \ -H "Content-Type: application/json" \ -H "token: your_api_token_here" \ -d '{ "agent_id": 123, "status": 1 }'
Only include fields you want to update; omitted fields will remain unchanged.
The agent must exist and belong to your workspace.
For available options for voice.provider, speech_to_text.provider, speech_to_text.language, llm models, and tts_model, refer to the Create Voice Agent API documentation.
The agent_id can be provided either in the request body or as a query parameter.
status can be sent alone or alongside other field changes — see Status above.
1 = Active/Published, 2 = Deleted, 3 = Draft/Unpublished. New agents default to 3 (Draft) when omitted. Publishing (1) a voice agent (AGENT_TYPE 3) requires at least one active, workspace-owned phone number already attached.
{"docsConfig":{"theme":"palm","$schema":"https://mintlify.com/docs.json","name":"UnleashX","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/unleashx/l9ieMCUF2RRzrBWV/logo/dark.png?fit=max\u0026auto=format\u0026n=l9ieMCUF2RRzrBWV\u0026q=85\u0026s=3a048a051528d675fc2a15d6f83f8755","dark":"https://mintcdn.com/unleashx/l9ieMCUF2RRzrBWV/logo/light.png?fit=max\u0026auto=format\u0026n=l9ieMCUF2RRzrBWV\u0026q=85\u0026s=2b9b7b9620627db81fab80ccff16cabd"},"favicon":"https://mintcdn.com/unleashx/UPxx_JBBmWXCTLNc/favicon.ico?fit=max\u0026auto=format\u0026n=UPxx_JBBmWXCTLNc\u0026q=85\u0026s=750f5cc3486a57581cf411d6af6f55f9","api":{"playground":{"proxy":false}},"navbar":{"links":[{"href":"https://unleashx.statuspage.io/","label":"Status"},{"href":"mailto:cs@unleashx.ai","label":"Support"}],"primary":{"type":"button","label":"Login","href":"https://www.tryunleashx.com"}},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://linkedin.com/company/mintlify"}},"integrations":{"ga4":{"measurementId":"G-9DMBVXZKY3"},"gtm":{"tagId":"GTM-W9XGJ8BD"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"unleashx","hasAudioNarration":false,"actualSubdomain":"unleashx","customDomains":["docs.unleashx.ai"],"gitSource":{"type":"github","owner":"pawanux","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adb4a35146446953a9e00f6","collectionId":"1e4aa884-961e-493b-88be-8597387c2b2e","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adb4a35146446953a9e00f6"},"feedback":{"thumbs":true,"issues":true},"entitlements":{},"buildId":"6adb4a35146446953a9e00f6","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"default","tag":"Integrations","count":177},{"language":"default","tag":"Voice AI","count":56},{"language":"default","tag":"Audience","count":23},{"language":"default","tag":"Campaigns","count":17},{"language":"default","tag":"Productivity \u0026 Scheduling","count":17},{"language":"default","tag":"Communication","count":14},{"language":"default","tag":"CRM \u0026 Marketing","count":13},{"language":"default","tag":"Voice","count":12},{"language":"default","tag":"Dev Tools \u0026 Automation","count":11},{"language":"default","tag":"Segment","count":9}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/voice-ai/update-voice-agent","slug":"/api-reference/voice-ai/update-voice-agent","pageMetadata":{"title":"Update Voice Agent","openapi":"api-reference/openapi.json POST /create-agent","description":null,"href":"/api-reference/voice-ai/update-voice-agent"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The Update Voice Agent API uses the same request/response shape as Create Voice Agent, but you must include `,_jsx(_components.code,{children:`agent_id`}),` to identify which agent to update. Only `,_jsx(_components.code,{children:`agent_id`}),` is required — include any other fields you want to change, including `,_jsx(_components.code,{children:`status`}),` to draft, publish, or delete the agent.`]}),`\n`,_jsx(Heading,{level:`2`,id:`api-endpoint`,children:`API Endpoint`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`POST`}),` `,_jsx(_components.code,{children:`/api/v1/global/create-agent`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Content-Type:`}),` `,_jsx(_components.code,{children:`application/json`})]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Authentication:`}),` Required (Token header: `,_jsx(_components.code,{children:`token`}),`)`]}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`32`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`32`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"agent_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`123`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"agent_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Updated Support Agent\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Updated description\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"prompt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Updated prompt/instructions\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"timezone\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Asia/Kolkata\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"greeting\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Hello and welcome\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"session_data_webhook\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://www.tryunleashx.com/webhooks/session-data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"voice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"provider\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"elevenlabs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"voice_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"RXe6OFmxoC0nlSWpuCDy\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eleven_turbo_v2_5\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"settings\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stability\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"voice_style\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"speed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1.0`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"speech_to_text\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"provider\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"deepgram\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"nova-2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"language\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"english\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"llm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"llm\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-4o\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"model\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpt-4o\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"configurations\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"confidence_threshold\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`0.8`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"do_not_call_detection\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`required-fields`,children:`Required Fields`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`agent_id`})}),_jsx(_components.td,{children:`integer`}),_jsx(_components.td,{children:`ID of the agent to update (required)`})]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`optional-fields`,children:`Optional Fields`}),`\n`,_jsx(_components.p,{children:`All other fields follow the same definitions as the Create Voice Agent API — include only the fields you want to update.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Type`}),_jsx(_components.th,{children:`Description`})]})}),_jsx(_components.tbody,{children:_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`status`})}),_jsx(_components.td,{children:`number`}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`1`}),` = Active/Published, `,_jsx(_components.code,{children:`2`}),` = Deleted, `,_jsx(_components.code,{children:`3`}),` = Draft/Unpublished. See `,_jsx(_components.a,{href:`#status`,children:`Status`}),` below.`]})]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`status`,children:`Status`}),`\n`,_jsxs(_components.p,{children:[`Pass `,_jsx(_components.code,{children:`status`}),` on its own (just `,_jsx(_components.code,{children:`agent_id`}),` + `,_jsx(_components.code,{children:`status`}),`) to draft, publish, or delete the agent without touching anything else:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"agent_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`123`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"status\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`1`})}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Publish`}),` — the agent can place and receive calls`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`2`})}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Delete`}),` (soft delete) — also releases every phone number assigned to the agent`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:_jsx(_components.code,{children:`3`})}),_jsxs(_components.td,{children:[_jsx(_components.strong,{children:`Unpublish`}),` — moves the agent back to Draft`]})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`New agents are created in Draft (`,_jsx(_components.code,{children:`status: 3`}),`) by default — see `,_jsx(_components.a,{href:`/api-reference/voice-ai/create-voice-agent`,children:`Create Voice Agent`}),`. Publishing (`,_jsx(_components.code,{children:`status: 1`}),`) a `,_jsx(_components.strong,{children:`voice`}),` agent (`,_jsx(_components.code,{children:`AGENT_TYPE = 3`}),`) requires it to already have at least one `,_jsx(_components.strong,{children:`active, workspace-owned`}),` phone number attached — see `,_jsx(_components.a,{href:`/api-reference/voice-ai/attach-phone-number`,children:`Attach Phone Number`}),`. Numbers from a shared/global provider don’t count.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(Heading,{level:`3`,id:`success-response`,children:`Success Response`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Status Code:`}),` `,_jsx(_components.code,{children:`200 OK`})]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"success\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Voice agent updated successfully\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"agent_id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`123`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"agent_name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Updated Support Agent\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`error-responses`,children:`Error Responses`}),`\n`,_jsx(Heading,{level:`4`,id:`400-bad-request`,children:`400 Bad Request`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Agent ID is required\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Also returned for status changes:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Message`}),_jsx(_components.th,{children:`Cause`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Invalid status value`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`status`}),` isn’t `,_jsx(_components.code,{children:`1`}),`, `,_jsx(_components.code,{children:`2`}),`, or `,_jsx(_components.code,{children:`3`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Add at least 1 phone number to your agent`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`status: 1`}),` on a voice agent with no active phone number attached`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`Cannot publish agent with global provider phone numbers. Please use workspace-owned phone numbers.`})}),_jsxs(_components.td,{children:[_jsx(_components.code,{children:`status: 1`}),` but the agent’s only attached number(s) belong to a shared/global provider`]})]})]})]}),`\n`,_jsx(Heading,{level:`4`,id:`401-unauthorized`,children:`401 Unauthorized`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Invalid Auth Key or Session Expired\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`404-not-found`,children:`404 Not Found`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Agent not found\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`4`,id:`422-unprocessable-entity`,children:`422 Unprocessable Entity`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`4`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`4`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"error\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Validation error message\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`example-requests`,children:`Example Requests`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`13`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`13`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Update agent using agent_id in request body`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://www.tryunleashx.com/api/v1/global/create-agent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"token: your_api_token_here\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"agent_id\": 123,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"agent_name\": \"Updated Support Agent\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"You are an updated helpful support agent.\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voice\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"provider\": \"elevenlabs\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"voice_id\": \"RXe6OFmxoC0nlSWpuCDy\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Or using agent_id as query parameter`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://www.tryunleashx.com/api/v1/global/create-agent?agent_id=123\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"token: your_api_token_here\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"agent_name\": \"Updated Support Agent\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"prompt\": \"You are an updated helpful support agent.\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`# Publish the agent (status only, no other fields changed)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` https://www.tryunleashx.com/api/v1/global/create-agent`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Content-Type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"token: your_api_token_here\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"agent_id\": 123,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"status\": 1`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`2`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Only include fields you want to update; omitted fields will remain unchanged.`}),`\n`,_jsx(_components.li,{children:`The agent must exist and belong to your workspace.`}),`\n`,_jsxs(_components.li,{children:[`For available options for `,_jsx(_components.code,{children:`voice.provider`}),`, `,_jsx(_components.code,{children:`speech_to_text.provider`}),`, `,_jsx(_components.code,{children:`speech_to_text.language`}),`, `,_jsx(_components.code,{children:`llm`}),` models, and `,_jsx(_components.code,{children:`tts_model`}),`, refer to the Create Voice Agent API documentation.`]}),`\n`,_jsxs(_components.li,{children:[`The `,_jsx(_components.code,{children:`agent_id`}),` can be provided either in the request body or as a query parameter.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`status`}),` can be sent alone or alongside other field changes — see `,_jsx(_components.a,{href:`#status`,children:`Status`}),` above.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Update Voice Agent","openapi":"api-reference/openapi.json POST /create-agent","description":null,"href":"/api-reference/voice-ai/update-voice-agent"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"API Endpoint","slug":"api-endpoint","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Required Fields","slug":"required-fields","depth":2,"children":[]},{"title":"Optional Fields","slug":"optional-fields","depth":2,"children":[]},{"title":"Status","slug":"status","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[{"title":"Success Response","slug":"success-response","depth":3,"children":[]},{"title":"Error Responses","slug":"error-responses","depth":3,"children":[]},{"title":"400 Bad Request","slug":"400-bad-request","depth":4,"children":[]},{"title":"401 Unauthorized","slug":"401-unauthorized","depth":4,"children":[]},{"title":"404 Not Found","slug":"404-not-found","depth":4,"children":[]},{"title":"422 Unprocessable Entity","slug":"422-unprocessable-entity","depth":4,"children":[]}]},{"title":"Example Requests","slug":"example-requests","depth":2,"children":[]},{"title":"Notes","slug":"notes","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"security":[],"parameters":["62706913-47ca-422c-8a00-0f6782b8d49b"],"summary":"Create voice agent","tags":["Voice AI"],"requestBody":"93a21473-6fa5-43c2-9833-0e4a099d4eed","responses":{"201":"509868fe-1e49-4936-8043-9e294cb9811e"},"method":"post","type":"path","servers":["c7daafd4-85e5-49db-862c-d0bba4b9180b"],"path":"/create-agent","baseUrlOptions":["https://www.tryunleashx.com/api/v1/global/"],"title":"Create voice agent","description":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","disableProxy":true},"dependencies":{"parameters":{"62706913-47ca-422c-8a00-0f6782b8d49b":{"name":"token","in":"header","required":true,"description":"API token for authentication","schema":{"type":"string","isRequired":true,"description":"API token for authentication","uniqueKey":"","typeLabel":"string"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"agent_id":{"type":"integer","description":"ID of an existing agent to update. Omit to create a new agent.","uniqueKey":"agent_id","typeLabel":"integer"},"agent_name":{"type":"string","uniqueKey":"agent_name","typeLabel":"string"},"description":{"type":"string","uniqueKey":"description","typeLabel":"string"},"prompt":{"type":"string","uniqueKey":"prompt","typeLabel":"string"},"timezone":{"type":"string","uniqueKey":"timezone","typeLabel":"string"},"greeting":{"type":"string","uniqueKey":"greeting","typeLabel":"string"},"session_data_webhook":{"type":"string","uniqueKey":"session_data_webhook","typeLabel":"string"},"voice":{"type":"object","properties":{"provider":{"type":"string","enum":["elevenlabs","openai","deepgram","sarvam"],"uniqueKey":"voice.provider","typeLabel":"enum\u003cstring>"},"voice_id":{"type":"string","uniqueKey":"voice.voice_id","typeLabel":"string"},"model":{"type":"string","uniqueKey":"voice.model","typeLabel":"string"},"settings":{"type":"object","uniqueKey":"voice.settings","typeLabel":"object"}},"uniqueKey":"voice","typeLabel":"object"},"speech_to_text":{"type":"object","properties":{"provider":{"type":"string","uniqueKey":"speech_to_text.provider","typeLabel":"string"},"model":{"type":"string","uniqueKey":"speech_to_text.model","typeLabel":"string"},"language":{"type":"string","enum":["english","hindi","multi","albanian","arabic","armenian","azerbaijani","belarusian","bengali","bosnian","bulgarian","catalan","chinese","croatian","czech","danish","dutch","english_australia","english_india","english_new_zealand","english_uk","english_us","english_spanish","estonian","finnish","french","galician","georgian","german","german_switzerland","greek","gujarati","haitian_creole","hausa","hebrew","afrikaans","hungarian","icelandic","indonesian","italian","japanese","javanese","kannada","kazakh","khmer","korean","latvian","lithuanian","macedonian","malay","malayalam","maori","marathi","nepali","norwegian","persian","polish","portuguese","portuguese_brazil","punjabi","romanian","russian","serbian","shona","slovak","slovenian","somali","spanish","spanish_latin_america","sundanese","swahili","swedish","tagalog","tamil","tajik","telugu","thai","tswana","turkish","ukrainian","urdu","vietnamese","welsh"],"uniqueKey":"speech_to_text.language","typeLabel":"enum\u003cstring>"}},"uniqueKey":"speech_to_text","typeLabel":"object"},"llm":{"type":"object","properties":{"llm":{"type":"string","uniqueKey":"llm.llm","typeLabel":"string"},"model":{"type":"string","uniqueKey":"llm.model","typeLabel":"string"}},"uniqueKey":"llm","typeLabel":"object"},"configurations":{"type":"object","uniqueKey":"configurations","typeLabel":"object"},"status":{"type":"integer","enum":[1,2,3],"description":"1 = Active/Published, 2 = Deleted, 3 = Draft/Unpublished. New agents default to 3 (Draft) when omitted. Publishing (1) a voice agent (AGENT_TYPE 3) requires at least one active, workspace-owned phone number already attached.","uniqueKey":"status","typeLabel":"enum\u003cinteger>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"agent_id":123,"agent_name":"\u003cstring>","description":"\u003cstring>","prompt":"\u003cstring>","timezone":"\u003cstring>","greeting":"\u003cstring>","session_data_webhook":"\u003cstring>","voice":{"voice_id":"\u003cstring>","model":"\u003cstring>","settings":{}},"speech_to_text":{"provider":"\u003cstring>","model":"\u003cstring>"},"llm":{"llm":"\u003cstring>","model":"\u003cstring>"},"configurations":{}}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"509868fe-1e49-4936-8043-9e294cb9811e":{"description":"Created","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{},"servers":{"c7daafd4-85e5-49db-862c-d0bba4b9180b":{"url":"https://www.tryunleashx.com/api/v1/global/"}}},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"unleashx","siteName":"UnleashX","title":"Update Voice Agent - UnleashX","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-15T17:32:37.977Z","originalFileLocation":"api-reference/voice-ai/update-voice-agent.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"UnleashX\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/unleashx/AFUatSBxYcnCxJZg/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/unleashx/AFUatSBxYcnCxJZg/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/unleashx/AFUatSBxYcnCxJZg/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/unleashx/AFUatSBxYcnCxJZg/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/unleashx/AFUatSBxYcnCxJZg/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/unleashx/AFUatSBxYcnCxJZg/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/unleashx/AFUatSBxYcnCxJZg/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/unleashx/AFUatSBxYcnCxJZg/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/unleashx/AFUatSBxYcnCxJZg/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update Voice Agent - UnleashX\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"UnleashX\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.unleashx.ai/api-reference/voice-ai/update-voice-agent\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://unleashx.mintlify.app/_mintlify/api/og/v2?division=Voice\u0026amp;title=Update+Voice+Agent\u0026amp;theme=e0cfcda80c1c24bffb16b35b\u0026amp;signature=7975685421c2009ab090d2d06a3f2f7f0b95bcb51c40fc5050e62f38a8eceb70\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Update Voice Agent - UnleashX\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://unleashx.mintlify.app/_mintlify/api/og/v2?division=Voice\u0026amp;title=Update+Voice+Agent\u0026amp;theme=e0cfcda80c1c24bffb16b35b\u0026amp;signature=7975685421c2009ab090d2d06a3f2f7f0b95bcb51c40fc5050e62f38a8eceb70\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/unleashx/AFUatSBxYcnCxJZg/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"UnleashX\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.unleashx.ai/api-reference/voice-ai/update-voice-agent\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/voice-ai/update-voice-agent.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.unleashx.ai/#organization\",\"name\":\"UnleashX\",\"url\":\"https://docs.unleashx.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/unleashx/l9ieMCUF2RRzrBWV/logo/dark.png?fit=max\u0026auto=format\u0026n=l9ieMCUF2RRzrBWV\u0026q=85\u0026s=3a048a051528d675fc2a15d6f83f8755\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.unleashx.ai#website\",\"name\":\"UnleashX\",\"url\":\"https://docs.unleashx.ai\",\"publisher\":{\"@id\":\"https://docs.unleashx.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.unleashx.ai/api-reference/voice-ai/update-voice-agent#webpage\",\"url\":\"https://docs.unleashx.ai/api-reference/voice-ai/update-voice-agent\",\"name\":\"Update Voice Agent\",\"dateModified\":\"2026-10-15T17:32:37.977Z\",\"isPartOf\":{\"@id\":\"https://docs.unleashx.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.unleashx.ai/api-reference/voice-ai/update-voice-agent#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.unleashx.ai/api-reference/voice-ai/update-voice-agent#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Voice\",\"item\":\"https://docs.unleashx.ai/api-reference/voice-ai/create-voice-agent\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update Voice Agent\",\"item\":\"https://docs.unleashx.ai/api-reference/voice-ai/update-voice-agent\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.unleashx.ai/api-reference/voice-ai/update-voice-agent#apireference\",\"headline\":\"Update Voice Agent\",\"name\":\"Update Voice Agent\",\"url\":\"https://docs.unleashx.ai/api-reference/voice-ai/update-voice-agent\",\"mainEntityOfPage\":{\"@id\":\"https://docs.unleashx.ai/api-reference/voice-ai/update-voice-agent#webpage\"},\"dateModified\":\"2026-10-15T17:32:37.977Z\",\"publisher\":{\"@id\":\"https://docs.unleashx.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.unleashx.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"UnleashX\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"UnleashX","nav":{"global":null,"tabs":[{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"Voice AI","groups":[{"group":"Overview","pages":[{"title":"Voice AI","href":"/api-reference/voice-ai"}]},{"group":"Voice","pages":[{"title":"Create Voice Agent","openapi":"api-reference/openapi.json POST /create-agent","description":null,"href":"/api-reference/voice-ai/create-voice-agent"},{"title":"Update Voice Agent","openapi":"api-reference/openapi.json POST /create-agent","href":"/api-reference/voice-ai/update-voice-agent"},{"title":"Delete Voice Agent","openapi":"api-reference/openapi.json POST /delete-agent","description":null,"href":"/api-reference/voice-ai/delete-voice-agent"},{"title":"List Voice Agents","openapi":"api-reference/openapi.json GET /agents/get","href":"/api-reference/voice-ai/list-voice-agents"},{"title":"Get Agent Details by ID","openapi":"api-reference/openapi.json GET /agents/get-by-id","href":"/api-reference/voice-ai/get-agent-by-id"},{"title":"Attach Phone Number","openapi":"api-reference/openapi.json POST /attach-phone-numbers","href":"/api-reference/voice-ai/attach-phone-number"},{"title":"Make Call","openapi":"api-reference/openapi.json POST /agents/call","href":"/api-reference/voice-ai/make-call"},{"title":"List Voices","openapi":"api-reference/openapi.json GET /voice-list","href":"/api-reference/voice-ai/list-voices"},{"group":"Phone Numbers","pages":[{"title":"List Phone Numbers","openapi":"api-reference/openapi.json GET /list-phone-numbers","href":"/api-reference/phone-numbers/list-phone-numbers"}]},{"group":"Call Logs","pages":[{"title":"Call History","openapi":"api-reference/openapi.json GET /agents/call-history","href":"/api-reference/call-logs"},{"title":"Call Summary(Agent Wise)","openapi":"api-reference/openapi.json GET /agents/executions/list","href":"/api-reference/call-logs/call-summary"},{"title":"Call Cost","openapi":"api-reference/openapi.json GET /transactions/calling-list-with-transaction","href":"/api-reference/call-logs/call-cost"}]}]},{"group":"Campaigns","pages":[{"title":"Overview","href":"/api-reference/campaigns"},{"title":"Create Campaign","openapi":"api-reference/openapi.json POST /create-campaign","href":"/api-reference/campaigns/create-campaign"},{"title":"Update Campaign","openapi":"api-reference/openapi.json POST /update-campaign","href":"/api-reference/campaigns/update-campaign"},{"title":"Force Complete Campaign","openapi":"api-reference/openapi.json POST /campaign-force-completed","href":"/api-reference/campaigns/campaign-force-completed"},{"title":"List Campaigns","openapi":"api-reference/openapi.json GET /campaign-list","href":"/api-reference/campaigns/campaign-list"},{"title":"Campaign Summary List","openapi":"api-reference/openapi.json GET /summary-list","href":"/api-reference/campaigns/campaign-summary-list"},{"title":"Campaign Consumption","openapi":"api-reference/openapi.json GET /campaign-consumption","href":"/api-reference/campaigns/campaign-consumption"},{"title":"Campaign Details","openapi":"api-reference/openapi.json GET /campaign-details/{campaign_id}","href":"/api-reference/campaigns/campaign-details"},{"title":"Audience List","openapi":"api-reference/openapi.json GET /audience-list","href":"/api-reference/campaigns/audience-list"},{"title":"Download Audience Format","openapi":"api-reference/openapi.json GET /audience-format","href":"/api-reference/campaigns/audience-format"},{"title":"Update Knowledge Base Status","openapi":"api-reference/openapi.json POST /update-knowledgebase-status","href":"/api-reference/campaigns/update-knowledgebase-status"},{"title":"Campaign Audience Stats","openapi":"api-reference/openapi.json GET /campaign-audience-stats","href":"/api-reference/campaigns/campaign-audience-stats"},{"title":"Delete Audience","openapi":"api-reference/openapi.json POST /delete-audience","href":"/api-reference/campaigns/delete-audience"},{"title":"Export Campaign Data","openapi":"api-reference/openapi.json GET /export-campaign-data","href":"/api-reference/campaigns/export-campaign-data"},{"title":"Export Campaign Audience Data","openapi":"api-reference/openapi.json GET /export-campaign-audience-data","href":"/api-reference/campaigns/export-campaign-audience-data"},{"title":"Attach Campaign Sources","openapi":"api-reference/openapi.json POST /campaign/attach-sources","href":"/api-reference/campaigns/attach-campaign-sources"},{"title":"Campaign Connected Contacts","openapi":"api-reference/openapi.json GET /campaign/contacts-list","href":"/api-reference/campaigns/campaign-connected-contacts"}]},{"group":"Audience","pages":[{"title":"Overview","href":"/api-reference/audience"},{"title":"Create Audience","openapi":"api-reference/openapi.json POST /audience/create","href":"/api-reference/audience/create-audience"},{"title":"Update Audience","openapi":"api-reference/openapi.json POST /audience/update","href":"/api-reference/audience/update-audience"},{"title":"List Audiences","openapi":"api-reference/openapi.json GET /audience/list","href":"/api-reference/audience/list-audiences"},{"title":"Audience Summary List","openapi":"api-reference/openapi.json GET /audience/summary-list","href":"/api-reference/audience/audience-summary-list"},{"title":"Audience Details","openapi":"api-reference/openapi.json GET /audience/details","href":"/api-reference/audience/audience-details"},{"title":"List Audience Contacts","openapi":"api-reference/openapi.json GET /audience/contacts","href":"/api-reference/audience/list-audience-contacts"},{"title":"Export Audience Contacts","openapi":"api-reference/openapi.json GET /audience/contacts/export","href":"/api-reference/audience/export-audience-contacts"},{"title":"Delete Audience Contacts","openapi":"api-reference/openapi.json POST /audience/delete-contacts","href":"/api-reference/audience/delete-audience-contacts"},{"title":"Download Audience Template","openapi":"api-reference/openapi.json GET /audience/download-template","href":"/api-reference/audience/download-audience-template"},{"group":"Segment","pages":[{"title":"Overview","href":"/api-reference/segment"},{"title":"Create Segment","openapi":"api-reference/openapi.json POST /segment/create","href":"/api-reference/segment/create-segment"},{"title":"Preview Segment","openapi":"api-reference/openapi.json POST /segment/preview","href":"/api-reference/segment/preview-segment"},{"title":"List Segments","openapi":"api-reference/openapi.json GET /segment/list","href":"/api-reference/segment/list-segments"},{"title":"Segment Summary List","openapi":"api-reference/openapi.json GET /segment/summary-list","href":"/api-reference/segment/segment-summary-list"},{"title":"Segment Details","openapi":"api-reference/openapi.json GET /segment/details","href":"/api-reference/segment/segment-details"},{"title":"Update Segment","openapi":"api-reference/openapi.json POST /segment/update","href":"/api-reference/segment/update-segment"},{"title":"List Segment Contacts","openapi":"api-reference/openapi.json GET /segment/contacts","href":"/api-reference/segment/list-segment-contacts"},{"title":"Export Segment Contacts","openapi":"api-reference/openapi.json GET /segment/contacts/export","href":"/api-reference/segment/export-segment-contacts"}]},{"group":"Input Variables","pages":[{"title":"Overview","href":"/api-reference/input-variables"},{"title":"Create Input Variable","openapi":"api-reference/openapi.json POST /input-variable/create","href":"/api-reference/input-variables/create-input-variable"},{"title":"List Input Variables","openapi":"api-reference/openapi.json GET /input-variable/list","href":"/api-reference/input-variables/list-input-variables"},{"title":"Update Input Variable","openapi":"api-reference/openapi.json POST /input-variable/update","href":"/api-reference/input-variables/update-input-variable"}]}]},{"group":"Click to Call","pages":[{"title":"Trigger Click-to-Dial Call","openapi":"api-reference/openapi.json POST /click-to-dial","href":"/api-reference/click-to-dial/trigger-call"},{"title":"Get Click-to-Dial History","openapi":"api-reference/openapi.json GET /click-to-dial/history","href":"/api-reference/click-to-dial/call-history"},{"title":"Get Click-to-Call Live Status","openapi":"api-reference/openapi.json GET /c2c-live-status/{call_id}","href":"/api-reference/click-to-dial/live-status"}]}]},{"tab":"Evaluation","pages":[{"title":"Evaluation","href":"/api-reference/evaluation"}]},{"tab":"Workflows","pages":[{"title":"Workflows","href":"/api-reference/workflows"}]},{"tab":"Chatbots","pages":[{"title":"Chatbots","href":"/api-reference/chatbots"}]},{"tab":"Apps \u0026 Data","pages":[{"title":"Apps \u0026 Data","href":"/api-reference/forms"}]},{"tab":"Integrations","pages":[{"title":"Integrations","href":"/integrations/introduction"}]},{"tab":"FAQs","pages":[{"title":"FAQs","href":"/faqs/platform-guide"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog/releases"}]}]},"basePath":"","title":"Update Voice Agent - UnleashX","buildId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","deploymentId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C8RPHPxo.js","utils-0BK-9q6z.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-DfjzsUJT.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-B4v9psJ4.js","snippetPresets-CpTQv-Ez.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-BNP-Fvr0.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BSgu6h1D.js","shallow-Biv1i9Gs.js","getApiPlaygroundDisplay-BoGOXhtF.js","CodeSnippet-DvQoT18_.js","CodeSnippets-Dnpa15xT.js","Page-Buji1S4J.js","getPastedJson-xAIyhUFE.js","icon-S6FBih11.js","MethodPill-SaYeUZyk.js","DuplicateIcon-Cs-p3v2Q.js","createIcon-DjCFEoHq.js","DynamicMarkdown-BcnBltEQ.js","SectionHeading-BUBl0eEF.js","axios-vUo_bRtp.js","Markdown-h4cOoD8d.js","clsx-B2v50t8t.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-DJnKvr0g.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BHrrjR1K.js"]}