{ "message": "Validation failed", "errors": { "speech_speed": [ "The speech speed must be between 0.7 and 1.2." ], "webhook_url": [ "The webhook url must be a valid URL." ] }}
{ "message": "Validation failed", "errors": { "speech_speed": [ "The speech speed must be between 0.7 and 1.2." ], "webhook_url": [ "The webhook url must be a valid URL." ] }}
{ "message": "Assistant update failed"}
This endpoint allows you to update an existing AI assistant’s configuration. All fields are optional - only provide the fields you want to update.
{ "message": "Validation failed", "errors": { "speech_speed": [ "The speech speed must be between 0.7 and 1.2." ], "webhook_url": [ "The webhook url must be a valid URL." ] }}
Only the fields you provide in the request body will be updated
All validation rules apply the same as when creating an assistant
To remove a phone number assignment, set phone_number_id to null
To disable webhook, set webhook_url to null or is_webhook_active to false
The assistant must belong to the authenticated user to be updated
Was this page helpful?
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"SpotzyAI","colors":{"primary":"#1434A4","light":"#1434A4","dark":"#4A6FE8"},"favicon":"/favicon.png","logo":{"light":"https://mintcdn.com/spotzyai/MAgiH2uDgUXbVVVh/resources/logo/light.png?fit=max\u0026auto=format\u0026n=MAgiH2uDgUXbVVVh\u0026q=85\u0026s=81342708666387eed9ac6118c1f69551","dark":"https://mintcdn.com/spotzyai/MAgiH2uDgUXbVVVh/resources/logo/dark.png?fit=max\u0026auto=format\u0026n=MAgiH2uDgUXbVVVh\u0026q=85\u0026s=1fff678d7478731b638852d9f25b4f77"},"api":{"mdx":{"server":"https://platform.spotzyai.com/api/","auth":{"method":"bearer","name":null}}},"navbar":{"links":[{"label":"Home","href":"https://spotzyai.com"},{"label":"Support","href":"https://spotzyai.com/contact"}],"primary":{"type":"button","label":"Dashboard","href":"https://platform.spotzyai.com"}},"styling":{"latex":true},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"spotzyai","hasAudioNarration":false,"actualSubdomain":"spotzyai","customDomains":["docs.spotzyai.com"],"gitSource":{"type":"github","owner":"spotzyai","repo":"documentation-main","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6a21e8b2572b750f6b6fef6e","collectionId":"68591363-520e-4be3-9fc7-08d388a382a8","schemaVersion":"v2"},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6a21e8b2572b750f6b6fef6e:success","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"Platform Guide","count":66},{"language":"default","tag":"API Reference","count":27},{"language":"default","tag":"AI Assistants Overview","count":15},{"language":"default","tag":"Assistants","count":12},{"language":"default","tag":"No-Code Automation","count":10},{"language":"default","tag":"Troubleshooting \u0026 FAQs","count":9},{"language":"default","tag":"Leads","count":7},{"language":"default","tag":"No-Code Automation platform","count":7},{"language":"default","tag":"Outbound Calls","count":6},{"language":"default","tag":"Phone Numbers","count":5}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":false},"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":"editor-v7-file-tree","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":"pause-universal-search-reconcile","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":"per-site-search-delta","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":"editor-private-page-search","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":"editor-nav-generations","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":"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":"editor-agent-model-picker","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":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/assistants/update-assistant","slug":"/api-reference/assistants/update-assistant","pageMetadata":{"title":"Update assistant","api":"PUT /user/assistant/{id}","description":"Update an existing AI assistant's configuration","href":"/api-reference/assistants/update-assistant"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Update an existing AI assistant’s configuration\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"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={code:`code`,li:`li`,p:`p`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,ResponseField}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`This endpoint allows you to update an existing AI assistant’s configuration. All fields are optional - only provide the fields you want to update.`}),`\n`,_jsx(Heading,{level:`3`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsx(ParamField,{path:`id`,type:`integer`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`The unique identifier of the assistant to update`})}),`\n`,_jsx(Heading,{level:`3`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(Heading,{level:`4`,id:`core-fields`,children:`Core Fields`}),`\n`,_jsx(ParamField,{body:`assistant_name`,type:`string`,optional:true,id:`param-assistant-name`,children:_jsx(_components.p,{children:`The name of the assistant (max 255 characters)`})}),`\n`,_jsx(ParamField,{body:`voice_id`,type:`integer`,optional:true,id:`param-voice-id`,children:_jsx(_components.p,{children:`The voice ID to use for the assistant (must exist in available voices)`})}),`\n`,_jsx(ParamField,{body:`language`,type:`string`,optional:true,id:`param-language`,children:_jsx(_components.p,{children:`The language name for the assistant (max 100 characters)`})}),`\n`,_jsx(ParamField,{body:`llm_model`,type:`string`,optional:true,id:`param-llm-model`,children:_jsx(_components.p,{children:`The LLM model name to use (max 100 characters)`})}),`\n`,_jsx(ParamField,{body:`calls_direction`,type:`string`,optional:true,id:`param-calls-direction`,children:_jsxs(_components.p,{children:[`The call direction type. Options: `,_jsx(_components.code,{children:`receive`}),`, `,_jsx(_components.code,{children:`make`})]})}),`\n`,_jsx(ParamField,{body:`engine_type`,type:`string`,optional:true,id:`param-engine-type`,children:_jsxs(_components.p,{children:[`The engine type to use. Options: `,_jsx(_components.code,{children:`pipeline`}),`, `,_jsx(_components.code,{children:`multimodal`})]})}),`\n`,_jsx(ParamField,{body:`timezone`,type:`string`,optional:true,id:`param-timezone`,children:_jsx(_components.p,{children:`The timezone for the assistant (e.g., “America/New_York”)`})}),`\n`,_jsx(ParamField,{body:`initial_message`,type:`string`,optional:true,id:`param-initial-message`,children:_jsx(_components.p,{children:`The initial message the assistant will speak when the call starts`})}),`\n`,_jsx(ParamField,{body:`system_prompt`,type:`string`,optional:true,id:`param-system-prompt`,children:_jsx(_components.p,{children:`The system prompt that defines the assistant’s behavior and personality`})}),`\n`,_jsx(Heading,{level:`4`,id:`optional-configuration`,children:`Optional Configuration`}),`\n`,_jsx(ParamField,{body:`phone_number_id`,type:`integer`,optional:true,id:`param-phone-number-id`,children:_jsx(_components.p,{children:`The ID of a phone number to assign to the assistant (set to null to unassign)`})}),`\n`,_jsx(ParamField,{body:`endpoint_type`,type:`string`,optional:true,id:`param-endpoint-type`,children:_jsxs(_components.p,{children:[`Voice activity detection type. Options: `,_jsx(_components.code,{children:`vad`}),`, `,_jsx(_components.code,{children:`ai`})]})}),`\n`,_jsx(ParamField,{body:`endpoint_sensitivity`,type:`number`,optional:true,id:`param-endpoint-sensitivity`,children:_jsx(_components.p,{children:`Endpoint sensitivity level (0-5)`})}),`\n`,_jsx(ParamField,{body:`interrupt_sensitivity`,type:`number`,optional:true,id:`param-interrupt-sensitivity`,children:_jsx(_components.p,{children:`Interrupt sensitivity level (0-5)`})}),`\n`,_jsx(ParamField,{body:`ambient_sound_volume`,type:`number`,optional:true,id:`param-ambient-sound-volume`,children:_jsx(_components.p,{children:`Ambient sound volume level (0-1)`})}),`\n`,_jsx(ParamField,{body:`post_call_evaluation`,type:`boolean`,optional:true,id:`param-post-call-evaluation`,children:_jsx(_components.p,{children:`Whether to enable post-call evaluation`})}),`\n`,_jsx(ParamField,{body:`send_webhook_only_on_completed`,type:`boolean`,optional:true,id:`param-send-webhook-only-on-completed`,children:_jsx(_components.p,{children:`Whether to send webhooks only on completed calls`})}),`\n`,_jsx(ParamField,{body:`include_recording_in_webhook`,type:`boolean`,optional:true,id:`param-include-recording-in-webhook`,children:_jsx(_components.p,{children:`Whether to include recording URL in webhook payload`})}),`\n`,_jsx(Heading,{level:`4`,id:`webhook-configuration`,children:`Webhook Configuration`}),`\n`,_jsx(ParamField,{body:`is_webhook_active`,type:`boolean`,optional:true,id:`param-is-webhook-active`,children:_jsx(_components.p,{children:`Whether webhook notifications are enabled`})}),`\n`,_jsx(ParamField,{body:`webhook_url`,type:`string`,optional:true,id:`param-webhook-url`,children:_jsx(_components.p,{children:`The webhook URL for post-call notifications (can be set to null to remove)`})}),`\n`,_jsx(Heading,{level:`4`,id:`interruption-settings`,children:`Interruption Settings`}),`\n`,_jsx(ParamField,{body:`use_min_interrupt_words`,type:`boolean`,optional:true,id:`param-use-min-interrupt-words`,children:_jsx(_components.p,{children:`Whether to use minimum interrupt words setting`})}),`\n`,_jsx(ParamField,{body:`min_interrupt_words`,type:`integer`,optional:true,id:`param-min-interrupt-words`,children:_jsx(_components.p,{children:`Minimum number of words before interruption is allowed (0-10)`})}),`\n`,_jsx(Heading,{level:`4`,id:`variables-and-schema`,children:`Variables and Schema`}),`\n`,_jsx(ParamField,{body:`variables`,type:`object`,optional:true,id:`param-variables`,children:_jsx(_components.p,{children:`Key-value pairs of custom variables for the assistant`})}),`\n`,_jsxs(ParamField,{body:`post_call_schema`,type:`array`,optional:true,id:`param-post-call-schema`,children:[_jsx(_components.p,{children:`Schema definition for post-call data extraction`}),_jsxs(Expandable,{title:`post_call_schema properties`,children:[_jsx(ParamField,{body:`post_call_schema[].name`,type:`string`,required:true,id:`param-post-call-schema-name`,children:_jsx(_components.p,{children:`The name of the schema field (alphanumeric and underscores only)`})}),_jsx(ParamField,{body:`post_call_schema[].type`,type:`string`,required:true,id:`param-post-call-schema-type`,children:_jsxs(_components.p,{children:[`The data type. Options: `,_jsx(_components.code,{children:`string`}),`, `,_jsx(_components.code,{children:`number`}),`, `,_jsx(_components.code,{children:`bool`})]})}),_jsx(ParamField,{body:`post_call_schema[].description`,type:`string`,required:true,id:`param-post-call-schema-description`,children:_jsx(_components.p,{children:`Description of what this field represents`})})]})]}),`\n`,_jsx(Heading,{level:`4`,id:`end-call-tool`,children:`End Call Tool`}),`\n`,_jsx(ParamField,{body:`end_call_tool.description`,type:`string`,optional:true,id:`param-end-call-tool-description`,children:_jsx(_components.p,{children:`Description for the end call tool functionality (max 500 characters)`})}),`\n`,_jsx(Heading,{level:`4`,id:`voice-and-speech-settings`,children:`Voice and Speech Settings`}),`\n`,_jsx(ParamField,{body:`llm_temperature`,type:`number`,optional:true,id:`param-llm-temperature`,children:_jsx(_components.p,{children:`LLM temperature setting (0-1)`})}),`\n`,_jsx(ParamField,{body:`voice_stability`,type:`number`,optional:true,id:`param-voice-stability`,children:_jsx(_components.p,{children:`Voice stability setting (0-1)`})}),`\n`,_jsx(ParamField,{body:`voice_similarity`,type:`number`,optional:true,id:`param-voice-similarity`,children:_jsx(_components.p,{children:`Voice similarity setting (0-1)`})}),`\n`,_jsx(ParamField,{body:`speech_speed`,type:`number`,optional:true,id:`param-speech-speed`,children:_jsx(_components.p,{children:`Speech speed multiplier (0.7-1.2)`})}),`\n`,_jsx(Heading,{level:`4`,id:`call-behavior-settings`,children:`Call Behavior Settings`}),`\n`,_jsx(ParamField,{body:`allow_interruptions`,type:`boolean`,optional:true,id:`param-allow-interruptions`,children:_jsx(_components.p,{children:`Whether to allow caller interruptions`})}),`\n`,_jsx(ParamField,{body:`filler_audios`,type:`boolean`,optional:true,id:`param-filler-audios`,children:_jsx(_components.p,{children:`Whether to use filler audio during processing`})}),`\n`,_jsx(ParamField,{body:`re_engagement_interval`,type:`integer`,optional:true,id:`param-re-engagement-interval`,children:_jsx(_components.p,{children:`Re-engagement interval in seconds (7-600)`})}),`\n`,_jsx(ParamField,{body:`max_call_duration`,type:`integer`,optional:true,id:`param-max-call-duration`,children:_jsx(_components.p,{children:`Maximum call duration in seconds (20-1200)`})}),`\n`,_jsx(ParamField,{body:`max_silence_duration`,type:`integer`,optional:true,id:`param-max-silence-duration`,children:_jsx(_components.p,{children:`Maximum silence duration in seconds (1-120)`})}),`\n`,_jsx(ParamField,{body:`end_call_on_voicemail`,type:`boolean`,optional:true,id:`param-end-call-on-voicemail`,children:_jsx(_components.p,{children:`Whether to end call when voicemail is detected`})}),`\n`,_jsx(ParamField,{body:`noise_cancellation`,type:`boolean`,optional:true,id:`param-noise-cancellation`,children:_jsx(_components.p,{children:`Whether to enable noise cancellation`})}),`\n`,_jsx(ParamField,{body:`record_call`,type:`boolean`,optional:true,id:`param-record-call`,children:_jsx(_components.p,{children:`Whether to record the call`})}),`\n`,_jsx(ParamField,{body:`who_speaks_first`,type:`string`,optional:true,id:`param-who-speaks-first`,children:_jsxs(_components.p,{children:[`Who speaks first in the call. Options: `,_jsx(_components.code,{children:`AI assistant`}),`, `,_jsx(_components.code,{children:`Customer`})]})}),`\n`,_jsx(Heading,{level:`3`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message`,children:_jsx(_components.p,{children:`Success message confirming assistant update`})}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(Expandable,{title:`properties`,children:[_jsx(ResponseField,{name:`id`,type:`integer`,id:`param-id-1`,children:_jsx(_components.p,{children:`The unique identifier of the updated assistant`})}),_jsx(ResponseField,{name:`name`,type:`string`,id:`param-name`,children:_jsx(_components.p,{children:`The name of the assistant`})}),_jsx(ResponseField,{name:`status`,type:`string`,id:`param-status`,children:_jsx(_components.p,{children:`The current status of the assistant`})}),_jsx(ResponseField,{name:`type`,type:`string`,id:`param-type`,children:_jsxs(_components.p,{children:[`The type of assistant (`,_jsx(_components.code,{children:`inbound`}),` or `,_jsx(_components.code,{children:`outbound`}),`)`]})}),_jsx(ResponseField,{name:`mode`,type:`string`,id:`param-mode`,children:_jsxs(_components.p,{children:[`The engine mode (`,_jsx(_components.code,{children:`pipeline`}),` or `,_jsx(_components.code,{children:`multimodal`}),`)`]})})]})}),`\n`,_jsx(Heading,{level:`3`,id:`error-responses`,children:`Error Responses`}),`\n`,_jsx(ResponseField,{name:`404 Not Found`,id:`param-404-not-found`,children:_jsx(Expandable,{title:`Error Response`,children:_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message-1`,children:_jsx(_components.p,{children:`Error message when the assistant is not found or doesn’t belong to the authenticated user`})})})}),`\n`,_jsx(ResponseField,{name:`422 Validation Error`,id:`param-422-validation-error`,children:_jsxs(Expandable,{title:`Error Response`,children:[_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message-2`,children:_jsx(_components.p,{children:`Error message indicating validation failure`})}),_jsx(ResponseField,{name:`errors`,type:`object`,id:`param-errors`,children:_jsx(_components.p,{children:`Detailed validation errors for each field`})})]})}),`\n`,_jsx(ResponseField,{name:`500 Internal Server Error`,id:`param-500-internal-server-error`,children:_jsx(Expandable,{title:`Error Response`,children:_jsx(ResponseField,{name:`message`,type:`string`,id:`param-message-3`,children:_jsx(_components.p,{children:`Error message indicating assistant update failure`})})})}),`\n`,`\n`,_jsx(Heading,{level:`3`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Only the fields you provide in the request body will be updated`}),`\n`,_jsx(_components.li,{children:`All validation rules apply the same as when creating an assistant`}),`\n`,_jsxs(_components.li,{children:[`To remove a phone number assignment, set `,_jsx(_components.code,{children:`phone_number_id`}),` to `,_jsx(_components.code,{children:`null`})]}),`\n`,_jsxs(_components.li,{children:[`To disable webhook, set `,_jsx(_components.code,{children:`webhook_url`}),` to `,_jsx(_components.code,{children:`null`}),` or `,_jsx(_components.code,{children:`is_webhook_active`}),` to `,_jsx(_components.code,{children:`false`})]}),`\n`,_jsx(_components.li,{children:`The assistant must belong to the authenticated user to be updated`}),`\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 assistant","api":"PUT /user/assistant/{id}","description":"Update an existing AI assistant's configuration","href":"/api-reference/assistants/update-assistant"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[207,326,"pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Expandable,Heading,ParamField,ResponseExample,ResponseField}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expa"],[489,504,"Example)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingM"],[12535,13828,"_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200 Success Response`,numberOfLines:`10`,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:`10`,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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Assistant 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:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`789`}),_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:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Updated Sales Assistant\"`}),_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:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"active\"`}),_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:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"outbound\"`}),_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:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pipeline\"`})]}),`\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`]})})}),_jsx(CodeBlock,{filename:`404 Not Found`,numberOfLines:`3`,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:`3`,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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Assistant not found\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`422 Validation Error`,numberOfLines:`11`,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:`11`,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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Validation failed\"`}),_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:` \"errors\"`}),_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_speed\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"The speech speed must be between 0.7 and 1.2.\"`})}),`\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:` \"webhook_url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"The webhook url must be a valid URL.\"`})}),`\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`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`500 Internal Server Error`,numberOfLines:`3`,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:`3`,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:` \"message\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Assistant update failed\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`3`,id:`notes`,children:`Notes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`Only the fields you provide in the request body will be updated`}),`\n`,_jsx(_components.li,{children:`All validation rules apply the same as when creating an assistant`}),`\n`,_jsxs(_components.li,{children:[`To remove a phone number assignment, set `,_jsx(_components.code,{children:`phone_number_id`}),` to `,_jsx(_components.code,{children:`null`})]}),`\n`,_jsxs(_components.li,{children:[`To disable webhook, set `,_jsx(_components.code,{children:`webhook_url`}),` to `,_jsx(_components.code,{children:`null`}),` or `,_jsx(_components.code,{children:`is_webhook_active`}),` to `,_jsx(_components.code,{children:`false`})]}),`\n`,_jsx(_components.li,{children:`The assistant must belong to the authenticated user to be updated`}),`\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.\")}"]]},"mdxExtracts":{"tableOfContents":[{"title":"Path Parameters","slug":"path-parameters","depth":3,"children":[]},{"title":"Request Body","slug":"request-body","depth":3,"children":[]},{"title":"Core Fields","slug":"core-fields","depth":4,"children":[]},{"title":"Optional Configuration","slug":"optional-configuration","depth":4,"children":[]},{"title":"Webhook Configuration","slug":"webhook-configuration","depth":4,"children":[]},{"title":"Interruption Settings","slug":"interruption-settings","depth":4,"children":[]},{"title":"Variables and Schema","slug":"variables-and-schema","depth":4,"children":[]},{"title":"End Call Tool","slug":"end-call-tool","depth":4,"children":[]},{"title":"Voice and Speech Settings","slug":"voice-and-speech-settings","depth":4,"children":[]},{"title":"Call Behavior Settings","slug":"call-behavior-settings","depth":4,"children":[]},{"title":"Response","slug":"response","depth":3,"children":[]},{"title":"Error Responses","slug":"error-responses","depth":3,"children":[]},{"title":"Notes","slug":"notes","depth":3,"children":[]}],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"200 Success Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"10\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Assistant updated successfully\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">789\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"name\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Updated Sales Assistant\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"status\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"active\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"outbound\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"mode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pipeline\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"404 Not Found","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Assistant not found\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"422 Validation Error","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"11\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Validation failed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"errors\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"speech_speed\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"The speech speed must be between 0.7 and 1.2.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"webhook_url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"The webhook url must be a valid URL.\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ]\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"500 Internal Server Error","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"message\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Assistant update failed\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Update assistant","path":"/user/assistant/{id}","servers":[{"url":"https://platform.spotzyai.com/api/"}],"method":"put","request":{"security":[{"title":"Bearer Auth","parameters":{"header":{"Authorization":{"type":"http","scheme":"bearer","description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token."}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{"id":{"schema":[{"type":"integer","description":"The unique identifier of the assistant to update","required":true}]}}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"assistant_name":[{"type":"string","description":"The name of the assistant (max 255 characters)"}],"voice_id":[{"type":"integer","description":"The voice ID to use for the assistant (must exist in available voices)"}],"language":[{"type":"string","description":"The language name for the assistant (max 100 characters)"}],"llm_model":[{"type":"string","description":"The LLM model name to use (max 100 characters)"}],"calls_direction":[{"type":"string","description":"The call direction type. Options: `receive` , `make`"}],"engine_type":[{"type":"string","description":"The engine type to use. Options: `pipeline` , `multimodal`"}],"timezone":[{"type":"string","description":"The timezone for the assistant (e.g., “America/New_York”)"}],"initial_message":[{"type":"string","description":"The initial message the assistant will speak when the call starts"}],"system_prompt":[{"type":"string","description":"The system prompt that defines the assistant’s behavior and personality"}],"phone_number_id":[{"type":"integer","description":"The ID of a phone number to assign to the assistant (set to null to unassign)"}],"endpoint_type":[{"type":"string","description":"Voice activity detection type. Options: `vad` , `ai`"}],"endpoint_sensitivity":[{"type":"number","description":"Endpoint sensitivity level (0-5)"}],"interrupt_sensitivity":[{"type":"number","description":"Interrupt sensitivity level (0-5)"}],"ambient_sound_volume":[{"type":"number","description":"Ambient sound volume level (0-1)"}],"post_call_evaluation":[{"type":"boolean","description":"Whether to enable post-call evaluation"}],"send_webhook_only_on_completed":[{"type":"boolean","description":"Whether to send webhooks only on completed calls"}],"include_recording_in_webhook":[{"type":"boolean","description":"Whether to include recording URL in webhook payload"}],"is_webhook_active":[{"type":"boolean","description":"Whether webhook notifications are enabled"}],"webhook_url":[{"type":"string","description":"The webhook URL for post-call notifications (can be set to null to remove)"}],"use_min_interrupt_words":[{"type":"boolean","description":"Whether to use minimum interrupt words setting"}],"min_interrupt_words":[{"type":"integer","description":"Minimum number of words before interruption is allowed (0-10)"}],"variables":[{"type":"object","properties":{},"description":"Key-value pairs of custom variables for the assistant"}],"post_call_schema":[{"type":"array","items":[{"type":"object","properties":{"post_call_schema[].name":[{"type":"string","description":"The name of the schema field (alphanumeric and underscores only)","required":true}],"post_call_schema[].type":[{"type":"string","description":"The data type. Options: `string` , `number` , `bool`","required":true}],"post_call_schema[].description":[{"type":"string","description":"Description of what this field represents","required":true}]}}],"description":"Schema definition for post-call data extraction"}],"end_call_tool.description":[{"type":"string","description":"Description for the end call tool functionality (max 500 characters)"}],"llm_temperature":[{"type":"number","description":"LLM temperature setting (0-1)"}],"voice_stability":[{"type":"number","description":"Voice stability setting (0-1)"}],"voice_similarity":[{"type":"number","description":"Voice similarity setting (0-1)"}],"speech_speed":[{"type":"number","description":"Speech speed multiplier (0.7-1.2)"}],"allow_interruptions":[{"type":"boolean","description":"Whether to allow caller interruptions"}],"filler_audios":[{"type":"boolean","description":"Whether to use filler audio during processing"}],"re_engagement_interval":[{"type":"integer","description":"Re-engagement interval in seconds (7-600)"}],"max_call_duration":[{"type":"integer","description":"Maximum call duration in seconds (20-1200)"}],"max_silence_duration":[{"type":"integer","description":"Maximum silence duration in seconds (1-120)"}],"end_call_on_voicemail":[{"type":"boolean","description":"Whether to end call when voicemail is detected"}],"noise_cancellation":[{"type":"boolean","description":"Whether to enable noise cancellation"}],"record_call":[{"type":"boolean","description":"Whether to record the call"}],"who_speaks_first":[{"type":"string","description":"Who speaks first in the call. Options: `AI assistant` , `Customer`"}]}}],"examples":{"example":{"value":{"assistant_name":"\u003cstring>","voice_id":123,"language":"\u003cstring>","llm_model":"\u003cstring>","calls_direction":"\u003cstring>","engine_type":"\u003cstring>","timezone":"\u003cstring>","initial_message":"\u003cstring>","system_prompt":"\u003cstring>","phone_number_id":123,"endpoint_type":"\u003cstring>","endpoint_sensitivity":123,"interrupt_sensitivity":123,"ambient_sound_volume":123,"post_call_evaluation":true,"send_webhook_only_on_completed":true,"include_recording_in_webhook":true,"is_webhook_active":true,"webhook_url":"\u003cstring>","use_min_interrupt_words":true,"min_interrupt_words":123,"variables":{},"post_call_schema":[{"post_call_schema[].name":"\u003cstring>","post_call_schema[].type":"\u003cstring>","post_call_schema[].description":"\u003cstring>"}],"end_call_tool.description":"\u003cstring>","llm_temperature":123,"voice_stability":123,"voice_similarity":123,"speech_speed":123,"allow_interruptions":true,"filler_audios":true,"re_engagement_interval":123,"max_call_duration":123,"max_silence_duration":123,"end_call_on_voicemail":true,"noise_cancellation":true,"record_call":true,"who_speaks_first":"\u003cstring>"}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"message":[{"type":"string","description":"Success message confirming assistant update"}],"data":[{"type":"object","properties":{"id":[{"type":"integer","description":"The unique identifier of the updated assistant"}],"name":[{"type":"string","description":"The name of the assistant"}],"status":[{"type":"string","description":"The current status of the assistant"}],"type":[{"type":"string","description":"The type of assistant ( `inbound` or `outbound` )"}],"mode":[{"type":"string","description":"The engine mode ( `pipeline` or `multimodal` )"}]}}]}}],"examples":{"example":{"value":{"message":"\u003cstring>","data":{"id":123,"name":"\u003cstring>","status":"\u003cstring>","type":"\u003cstring>","mode":"\u003cstring>"}}}}}}},"deprecated":false}},"jsLinks":[],"subdomain":"spotzyai","siteName":"SpotzyAI","title":"Update assistant - SpotzyAI","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/assistants/update-assistant.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=\"description\" content=\"Update an existing AI assistant\u0026#x27;s configuration\">\u003cmeta data-mint-head name=\"application-name\" content=\"SpotzyAI\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/spotzyai/FH6a2wzxdbw3G4Mq/_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/spotzyai/FH6a2wzxdbw3G4Mq/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/spotzyai/FH6a2wzxdbw3G4Mq/_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/spotzyai/FH6a2wzxdbw3G4Mq/_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/spotzyai/FH6a2wzxdbw3G4Mq/_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/spotzyai/FH6a2wzxdbw3G4Mq/_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/spotzyai/FH6a2wzxdbw3G4Mq/_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/spotzyai/FH6a2wzxdbw3G4Mq/_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/spotzyai/FH6a2wzxdbw3G4Mq/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update assistant - SpotzyAI\">\u003cmeta data-mint-head property=\"og:description\" content=\"Update an existing AI assistant\u0026#x27;s configuration\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SpotzyAI\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.spotzyai.com/api-reference/assistants/update-assistant\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://spotzyai.mintlify.app/_mintlify/api/og/v2?division=Assistants\u0026amp;title=Update+assistant\u0026amp;description=Update+an+existing+AI+assistant%27s+configuration\u0026amp;theme=74c026de84a8c013b16b926f\u0026amp;signature=dac55b23c8b29c2b3d13aae420265b5179e659e327c2430af22d9621b910b2e6\">\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 assistant - SpotzyAI\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Update an existing AI assistant\u0026#x27;s configuration\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://spotzyai.mintlify.app/_mintlify/api/og/v2?division=Assistants\u0026amp;title=Update+assistant\u0026amp;description=Update+an+existing+AI+assistant%27s+configuration\u0026amp;theme=74c026de84a8c013b16b926f\u0026amp;signature=dac55b23c8b29c2b3d13aae420265b5179e659e327c2430af22d9621b910b2e6\">\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/spotzyai/FH6a2wzxdbw3G4Mq/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SpotzyAI\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#1434A4\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.spotzyai.com/api-reference/assistants/update-assistant\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/assistants/update-assistant.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.spotzyai.com/#organization\",\"name\":\"SpotzyAI\",\"url\":\"https://docs.spotzyai.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/spotzyai/MAgiH2uDgUXbVVVh/resources/logo/light.png?fit=max\u0026auto=format\u0026n=MAgiH2uDgUXbVVVh\u0026q=85\u0026s=81342708666387eed9ac6118c1f69551\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.spotzyai.com#website\",\"name\":\"SpotzyAI\",\"url\":\"https://docs.spotzyai.com\",\"publisher\":{\"@id\":\"https://docs.spotzyai.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.spotzyai.com/api-reference/assistants/update-assistant#webpage\",\"url\":\"https://docs.spotzyai.com/api-reference/assistants/update-assistant\",\"name\":\"Update assistant\",\"description\":\"Update an existing AI assistant's configuration\",\"isPartOf\":{\"@id\":\"https://docs.spotzyai.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.spotzyai.com/api-reference/assistants/update-assistant#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.spotzyai.com/api-reference/assistants/update-assistant#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Assistants\",\"item\":\"https://docs.spotzyai.com/api-reference/assistants/get-assistants\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update assistant\",\"item\":\"https://docs.spotzyai.com/api-reference/assistants/update-assistant\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.spotzyai.com/api-reference/assistants/update-assistant#apireference\",\"headline\":\"Update assistant\",\"name\":\"Update assistant\",\"description\":\"Update an existing AI assistant's configuration\",\"url\":\"https://docs.spotzyai.com/api-reference/assistants/update-assistant\",\"mainEntityOfPage\":{\"@id\":\"https://docs.spotzyai.com/api-reference/assistants/update-assistant#webpage\"},\"publisher\":{\"@id\":\"https://docs.spotzyai.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.spotzyai.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SpotzyAI\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"SpotzyAI","nav":{"global":null,"anchors":[{"anchor":"Platform Guide","icon":"book","pages":[{"title":"Platform Guide","href":"/introduction/what-is-spotzyai"}]},{"anchor":"No-Code Automation","icon":"wand-magic-sparkles","color":{"light":"#6c63ff","dark":"#6c63ff"},"pages":[{"title":"No-Code Automation","href":"/automation-platform/introduction"}]},{"anchor":"API Reference","icon":"code","color":{"light":"#1434A4","dark":"#1434A4"},"groups":[{"group":"API Reference","pages":[{"title":"Introduction","icon":"book-open","href":"/api-reference/introduction"},{"title":"Authentication","icon":"key","href":"/api-reference/authentication"}]},{"group":"Assistants","pages":[{"title":"List assistants","api":"GET /user/assistants/get","href":"/api-reference/assistants/get-assistants"},{"title":"Get outbound assistants","api":"GET /user/assistants/outbound","href":"/api-reference/assistants/get-outbound-assistants"},{"title":"Create assistant","api":"POST /user/assistant","description":"Create a new AI assistant with specified configuration","href":"/api-reference/assistants/create-assistant"},{"title":"Update assistant","api":"PUT /user/assistant/{id}","href":"/api-reference/assistants/update-assistant"},{"title":"Delete assistant","api":"DELETE /user/assistant/{id}","description":"Delete a specific AI assistant","href":"/api-reference/assistants/delete-assistant"},{"title":"Enable assistant inbound webhook","api":"POST /user/assistants/enable-inbound-webhook","href":"/api-reference/assistants/enable-inbound-webhook"},{"title":"Disable assistant inbound webhook","api":"POST /user/assistants/disable-inbound-webhook","href":"/api-reference/assistants/disable-inbound-webhook"},{"title":"Disable assistant webhook","api":"POST /user/assistants/disable-webhook","href":"/api-reference/assistants/disable-webhook"},{"title":"Get available languages","api":"GET /user/assistants/languages","href":"/api-reference/assistants/get-languages"},{"title":"Get available voices","api":"GET /user/assistants/voices","href":"/api-reference/assistants/get-voices"},{"title":"Get available LLM models","api":"GET /user/assistants/models","href":"/api-reference/assistants/get-models"},{"title":"Get available phone numbers","api":"GET /user/assistants/phone-numbers","href":"/api-reference/assistants/get-phone-numbers"}]},{"group":"Calls","pages":[{"title":"List calls","api":"GET /user/calls","href":"/api-reference/calls/get-calls"},{"title":"Make a phone call","api":"POST /user/make_call","href":"/api-reference/calls/make-phone-call"},{"title":"Delete call","api":"DELETE /user/calls/{call}","href":"/api-reference/calls/delete-call"}]},{"group":"Leads","pages":[{"title":"List leads","api":"GET /user/leads","href":"/api-reference/leads/get-lead"},{"title":"Create lead","api":"POST /user/lead","href":"/api-reference/leads/create"},{"title":"Update Lead","api":"PUT /user/leads/{id}","href":"/api-reference/leads/update-lead"},{"title":"Delete lead","api":"DELETE /user/leads/{id}","href":"/api-reference/leads/delete"}]},{"group":"Campaigns","pages":[{"title":"List campaigns","api":"GET /user/campaigns","href":"/api-reference/campaigns/get-campaigns"},{"title":"Update campaign status","api":"POST /user/campaigns/update-status","href":"/api-reference/campaigns/update-status"}]},{"group":"SMS","pages":[{"title":"Send SMS","api":"POST /user/sms","href":"/api-reference/sms/send-sms"}]},{"group":"Webhooks","pages":[{"title":"Post-Call Webhook","icon":"webhook","href":"/api-reference/webhooks/post-call-webhook"}]}]}]},"title":"Update assistant - SpotzyAI","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-rfhihCWU.js","utils-BmH1XFxk.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BcNsxPKB.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BAES3tkd.js","snippetPresets-DCMQBKLP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D6l_bzE9.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BOktbnNh.js","shallow-BCs8SgM7.js","getApiPlaygroundDisplay-DEmW5bJB.js","CodeSnippet-CpZOpB9C.js","CodeSnippets-BOBDqibl.js","Page-D5fEM6aW.js","getPastedJson-DH2JBvmr.js","icon-BBJH-kKh.js","MethodPill-D2Sd5NLC.js","DuplicateIcon-CGgfL2qN.js","createIcon-BKudBBzi.js","DynamicMarkdown-85clUA0i.js","SectionHeading-D0JiMgDx.js","axios-vUo_bRtp.js"]}