Update an existing agent’s configuration. Only the fields you provide will be updated — all other settings remain unchanged.If prompt_content is provided, a new version of the agent’s internal prompt is automatically created.
If call_analysis_prompt.custom_prompt is provided, a new version of the analysis prompt is automatically created before the agent is updated.Only send call_analysis_enabled, call_analysis_prompt, and call_analysis_schema when you explicitly want to configure call analysis. If call_analysis_enabled is true, provide call_analysis_prompt as well.
Try It Behavior
In Try it, llm is shown as a single object.
For standard providers, fill llm.params.temperature only.
For CUSTOM_LLM, fill llm.params.base_url, llm.params.api_key, and optionally llm.params.API_TYPE.
Authentication
string
required
Your eigi.ai API key. Must be prefixed with vk_.
Path Parameters
string
required
The unique agent ID to update.Example: 68ea2517dbb84c09bae1ba0a
Request Body
All fields are optional. Only provided fields will be updated.
Provider
Allowed params
STT
No params allowed (must be empty {})
STS
No public API param restrictions
LLM
Standard providers: only temperature (0.0 - 2.0). CUSTOM_LLM: requires base_url plus api_key; optional API_TYPE and temperature
TTS
Only speed
string
Updated agent name (1-100 characters).
string
Updated description (max 500 characters).
string
INBOUND or OUTBOUND.
string
Updated category.
array
Updated array of usage tip strings for the agent.
array
Updated mobile numbers associated with the agent.
object
Updated STT configuration (no params allowed).
Show properties
string
required
STT provider: DEEPGRAM, OPENAI, WHISPER, or GROK.
string
required
Model name for the STT provider.
string
required
Language code.
object
Must be empty {} for public API requests.
object
Updated LLM configuration. Standard providers only allow temperature. CUSTOM_LLM requires base_url plus api_key, and optionally accepts API_TYPE and temperature.
Show properties
string
required
LLM provider: OPENAI, OPENAI_RESPONSES, ANTHROPIC, GOOGLE, GROK, OPENROUTER, or CUSTOM_LLM.
string
required
Model name for the LLM provider.
object
For standard LLM providers, only temperature (0.0-2.0) is allowed. For CUSTOM_LLM, provide base_url, api_key, and optionally API_TYPE (CHAT_COMPLETION or RESPONSES) and temperature. If API_TYPE is omitted, it defaults to CHAT_COMPLETION.
TTS provider: CARTESIA, DEEPGRAM, ELEVENLABS, SARVAM, GOOGLE, HUME, or GROK.
string
required
Model name for the TTS provider.
string
required
Language code.
string
required
Voice ID for the TTS provider.
object
Only speed is allowed.
object
Updated Speech-to-Speech configuration.
Show properties
boolean
Whether speech-to-speech is enabled.
string
required
STS provider: GOOGLE, OPENAI, or GROK.
string
required
Model name for the STS provider.
string
required
Voice ID for the STS provider.
string
required
Language code.
object
Additional provider-specific STS parameters.
string
New prompt content — creates a new version of the agent’s internal prompt.
object
Reference an existing prompt by name and optionally version.
object
Updated call analysis prompt reference or inline analysis prompt content.
Show properties
string
required
Name of an existing analysis prompt.
integer
Specific analysis prompt version to use (omit for latest).
string
Inline analysis prompt content. If provided, a new analysis prompt version is created before linking it to the agent.
boolean
Toggle call analysis on or off for the agent. Set this to true only when you
want call analysis to run. If true, provide call_analysis_prompt as well.
object
Updated schema describing the structured JSON output expected from call
analysis.
string
Updated greeting message.
object
Update agent tools. Only specified tools are modified.
object
Updated widget configuration.
Response
Returns the complete updated agent object with all configurations and timestamps.
Authorizations
X-API-Key
string
header
required
API key for authentication. Get your API key from the eigi.ai Dashboard under Settings → API Keys.
Path Parameters
agent_id
string
required
The unique agent ID
Body
application/json
All fields are optional — only provided fields will be updated.
agent_name
string
Agent name
Required string length: 1 - 100
agent_description
string
Agent description
Maximum string length: 500
agent_type
enum<string>
Agent type
Available options:
INBOUND,
OUTBOUND
agent_category
enum<string>
Agent category
Available options:
Customer Service,
Sales,
Scheduling,
Research,
Healthcare,
Customer Success,
Education,
Finance,
HR,
Legal,
Productivity,
Creative,
IT/DevOps,
E-commerce,
Entertainment,
Travel,
Wellness,
Anime,
Cartoon,
Gaming,
Lifestyle,
other
agent_tips
string[]
Usage tips
agent_mobile_number
string[]
Mobile numbers associated with the agent
stt
object
Show child attributes
llm
object
LLM configuration. Use provider_name to choose a standard provider or CUSTOM_LLM. For standard providers, only params.temperature applies. For CUSTOM_LLM, use params.base_url, params.api_key, and optional params.API_TYPE.
Show child attributes
tts
object
Show child attributes
call_analysis_prompt
object
Optional call analysis prompt reference. Provide custom_prompt to create a new analysis prompt version before linking it to the agent.
Show child attributes
call_analysis_enabled
boolean
Toggle call analysis on or off for the agent. Set to true only when you want call analysis to run; when true, provide call_analysis_prompt as well.
call_analysis_schema
object
Optional schema for structured call analysis output, keyed by field name.
New prompt content — creates a new version of the agent's internal prompt
prompt
object
Reference to an existing prompt
Show child attributes
first_message_prompt
string
Agent's greeting message
tools
object
Configure agent tools. Each tool can be true (enable), false (disable), or an object with configuration.
Show child attributes
widget_config
object
Widget configuration
Show child attributes
Response
Agent updated successfully
id
string
Agent ID
agent_name
string
Agent name
agent_description
string
Agent description
agent_type
enum<string>
Agent type
Available options:
INBOUND,
OUTBOUND
agent_category
string
Agent category
agent_tips
string[]
Usage tips
agent_mobile_number
string[]
Associated mobile numbers
stt
object
STT configuration
llm
object
LLM configuration
tts
object
TTS configuration
sts
object
STS configuration (if set)
call_analysis_enabled
boolean
Whether call analysis is enabled for the agent
prompt
object
Prompt reference
Show child attributes
first_message_prompt
string
Agent's greeting message
dynamic_variables
string[]
Dynamic variables in the prompt
tools
object
Configured tools
widget_config
object
Widget configuration
MediaFiles
object[]
Media files associated with the agent
Show child attributes
created_at
string<date-time>
Creation timestamp
updated_at
string<date-time>
Last update timestamp
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"eigi.ai Documentation","colors":{"primary":"#16A34A","light":"#07C983","dark":"#15803D"},"logo":{"light":"https://mintcdn.com/eigiai/U_iGTsID5xNathIa/logo/eigi-light.png?fit=max\u0026auto=format\u0026n=U_iGTsID5xNathIa\u0026q=85\u0026s=9550fc009fb24e0ea282413ec1efeb8e","dark":"https://mintcdn.com/eigiai/U_iGTsID5xNathIa/logo/eigi-dark.png?fit=max\u0026auto=format\u0026n=U_iGTsID5xNathIa\u0026q=85\u0026s=b5b42e0176ec4493d63a0a53f925b70b"},"favicon":"https://mintcdn.com/eigiai/wsRcwsKArD5ogcfl/favicon.ico?fit=max\u0026auto=format\u0026n=wsRcwsKArD5ogcfl\u0026q=85\u0026s=bbfe168f3f2dc9e500698024de667c28","api":{"playground":{}},"navbar":{"links":[{"href":"mailto:buddy@eigi.ai","label":"Contact Support"}],"primary":{"type":"button","label":"Login to Dashboard","href":"https://eigi.ai"}},"footer":{"socials":{"x":"https://x.com/eigi_ai","linkedin":"https://linkedin.com/company/eigi-ai"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Dashboard","icon":"grid","href":"https://eigi.ai"},{"anchor":"Support","icon":"envelope","href":"mailto:buddy@eigi.ai"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"eigiai","hasAudioNarration":false,"actualSubdomain":"eigiai","customDomains":["docs.eigi.ai"],"gitSource":{"type":"github","owner":"eigi-ai","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{},"buildId":"6ae941d75a02d049c11c9500:success","clientVersion":"0.0.4271","searchFilterCounts":[{"language":"default","tag":"API Reference","count":23},{"language":"default","tag":"Guides","count":23},{"language":"default","tag":"Platform Features","count":10},{"language":"default","tag":"Eigi Computer","count":9},{"language":"default","tag":"Agents","count":6},{"language":"default","tag":"Prompts","count":6},{"language":"default","tag":"Chat","count":4},{"language":"default","tag":"Getting Started","count":4},{"language":"default","tag":"Configuration","count":4},{"language":"default","tag":"Overview","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"rbac-expansion","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":"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":"site-roles","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":"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":"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":"editor-metadata","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":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/public/agent-update","slug":"/api-reference/public/agent-update","pageMetadata":{"title":"Update Agent","openapi":"PATCH /v1/public/agents/{agent_id}","description":"Update an existing agent — only provided fields are modified","href":"/api-reference/public/agent-update"},"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 agent — only provided fields are modified\"\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`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Expandable,Heading,ParamField,Table}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Table)_missingMdxReference(`Table`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsx(_components.p,{children:`Update an existing agent’s configuration. Only the fields you provide will be updated — all other settings remain unchanged.`}),`\n`,_jsxs(_components.p,{children:[`If `,_jsx(_components.code,{children:`prompt_content`}),` is provided, a new version of the agent’s internal prompt is automatically created.\nIf `,_jsx(_components.code,{children:`call_analysis_prompt.custom_prompt`}),` is provided, a new version of the analysis prompt is automatically created before the agent is updated.`]}),`\n`,_jsxs(_components.p,{children:[`Only send `,_jsx(_components.code,{children:`call_analysis_enabled`}),`, `,_jsx(_components.code,{children:`call_analysis_prompt`}),`, and `,_jsx(_components.code,{children:`call_analysis_schema`}),` when you explicitly want to configure call analysis. If `,_jsx(_components.code,{children:`call_analysis_enabled`}),` is `,_jsx(_components.code,{children:`true`}),`, provide `,_jsx(_components.code,{children:`call_analysis_prompt`}),` as well.`]}),`\n`,_jsx(Heading,{level:`3`,id:`try-it-behavior`,children:`Try It Behavior`}),`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.code,{children:`Try it`}),`, `,_jsx(_components.code,{children:`llm`}),` is shown as a single object.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`For standard providers, fill `,_jsx(_components.code,{children:`llm.params.temperature`}),` only.`]}),`\n`,_jsxs(_components.li,{children:[`For `,_jsx(_components.code,{children:`CUSTOM_LLM`}),`, fill `,_jsx(_components.code,{children:`llm.params.base_url`}),`, `,_jsx(_components.code,{children:`llm.params.api_key`}),`, and optionally `,_jsx(_components.code,{children:`llm.params.API_TYPE`}),`.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`authentication`,children:`Authentication`}),`\n`,_jsx(ParamField,{header:`X-API-Key`,type:`string`,required:true,id:`param-x-api-key`,children:_jsxs(_components.p,{children:[`Your eigi.ai API key. Must be prefixed with `,_jsx(_components.code,{children:`vk_`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`path-parameters`,children:`Path Parameters`}),`\n`,_jsxs(ParamField,{path:`agent_id`,type:`string`,required:true,id:`param-agent-id`,children:[_jsx(_components.p,{children:`The unique agent ID to update.`}),_jsxs(_components.p,{children:[`Example: `,_jsx(_components.code,{children:`68ea2517dbb84c09bae1ba0a`})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`request-body`,children:`Request Body`}),`\n`,_jsx(_components.p,{children:`All fields are optional. Only provided fields will be updated.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Provider`}),_jsx(_components.th,{children:`Allowed params`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`STT`})}),_jsxs(_components.td,{children:[`No params allowed (must be empty `,_jsx(_components.code,{children:`{}`}),`)`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`STS`})}),_jsx(_components.td,{children:`No public API param restrictions`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`LLM`})}),_jsxs(_components.td,{children:[`Standard providers: only `,_jsx(_components.code,{children:`temperature`}),` (0.0 - 2.0). `,_jsx(_components.code,{children:`CUSTOM_LLM`}),`: requires `,_jsx(_components.code,{children:`base_url`}),` plus `,_jsx(_components.code,{children:`api_key`}),`; optional `,_jsx(_components.code,{children:`API_TYPE`}),` and `,_jsx(_components.code,{children:`temperature`})]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`TTS`})}),_jsxs(_components.td,{children:[`Only `,_jsx(_components.code,{children:`speed`})]})]})]})]}),`\n`,_jsx(ParamField,{body:`agent_name`,type:`string`,id:`param-agent-name`,children:_jsx(_components.p,{children:`Updated agent name (1-100 characters).`})}),`\n`,_jsx(ParamField,{body:`agent_description`,type:`string`,id:`param-agent-description`,children:_jsx(_components.p,{children:`Updated description (max 500 characters).`})}),`\n`,_jsx(ParamField,{body:`agent_type`,type:`string`,id:`param-agent-type`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`INBOUND`}),` or `,_jsx(_components.code,{children:`OUTBOUND`}),`.`]})}),`\n`,_jsx(ParamField,{body:`agent_category`,type:`string`,id:`param-agent-category`,children:_jsx(_components.p,{children:`Updated category.`})}),`\n`,_jsx(ParamField,{body:`agent_tips`,type:`array`,id:`param-agent-tips`,children:_jsx(_components.p,{children:`Updated array of usage tip strings for the agent.`})}),`\n`,_jsx(ParamField,{body:`agent_mobile_number`,type:`array`,id:`param-agent-mobile-number`,children:_jsx(_components.p,{children:`Updated mobile numbers associated with the agent.`})}),`\n`,_jsxs(ParamField,{body:`stt`,type:`object`,id:`param-stt`,children:[_jsx(_components.p,{children:`Updated STT configuration (no params allowed).`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`provider_name`,type:`string`,required:true,id:`param-provider-name`,children:_jsxs(_components.p,{children:[`STT provider: `,_jsx(_components.code,{children:`DEEPGRAM`}),`, `,_jsx(_components.code,{children:`OPENAI`}),`, `,_jsx(_components.code,{children:`WHISPER`}),`, or `,_jsx(_components.code,{children:`GROK`}),`.`]})}),_jsx(ParamField,{body:`model_name`,type:`string`,required:true,id:`param-model-name`,children:_jsx(_components.p,{children:`Model name for the STT provider.`})}),_jsx(ParamField,{body:`language`,type:`string`,required:true,id:`param-language`,children:_jsx(_components.p,{children:`Language code.`})}),_jsx(ParamField,{body:`params`,type:`object`,id:`param-params`,children:_jsxs(_components.p,{children:[`Must be empty `,_jsx(_components.code,{children:`{}`}),` for public API requests.`]})})]})]}),`\n`,_jsxs(ParamField,{body:`llm`,type:`object`,id:`param-llm`,children:[_jsxs(_components.p,{children:[`Updated LLM configuration. Standard providers only allow `,_jsx(_components.code,{children:`temperature`}),`. `,_jsx(_components.code,{children:`CUSTOM_LLM`}),` requires `,_jsx(_components.code,{children:`base_url`}),` plus `,_jsx(_components.code,{children:`api_key`}),`, and optionally accepts `,_jsx(_components.code,{children:`API_TYPE`}),` and `,_jsx(_components.code,{children:`temperature`}),`.`]}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`provider_name`,type:`string`,required:true,id:`param-provider-name-1`,children:_jsxs(_components.p,{children:[`LLM provider: `,_jsx(_components.code,{children:`OPENAI`}),`, `,_jsx(_components.code,{children:`OPENAI_RESPONSES`}),`, `,_jsx(_components.code,{children:`ANTHROPIC`}),`, `,_jsx(_components.code,{children:`GOOGLE`}),`, `,_jsx(_components.code,{children:`GROK`}),`, `,_jsx(_components.code,{children:`OPENROUTER`}),`, or `,_jsx(_components.code,{children:`CUSTOM_LLM`}),`.`]})}),_jsx(ParamField,{body:`model_name`,type:`string`,required:true,id:`param-model-name-1`,children:_jsx(_components.p,{children:`Model name for the LLM provider.`})}),_jsx(ParamField,{body:`params`,type:`object`,id:`param-params-1`,children:_jsxs(_components.p,{children:[`For standard LLM providers, only `,_jsx(_components.code,{children:`temperature`}),` (0.0-2.0) is allowed. For `,_jsx(_components.code,{children:`CUSTOM_LLM`}),`, provide `,_jsx(_components.code,{children:`base_url`}),`, `,_jsx(_components.code,{children:`api_key`}),`, and optionally `,_jsx(_components.code,{children:`API_TYPE`}),` (`,_jsx(_components.code,{children:`CHAT_COMPLETION`}),` or `,_jsx(_components.code,{children:`RESPONSES`}),`) and `,_jsx(_components.code,{children:`temperature`}),`. If `,_jsx(_components.code,{children:`API_TYPE`}),` is omitted, it defaults to `,_jsx(_components.code,{children:`CHAT_COMPLETION`}),`.`]})})]})]}),`\n`,_jsxs(ParamField,{body:`tts`,type:`object`,id:`param-tts`,children:[_jsxs(_components.p,{children:[`Updated TTS configuration (only `,_jsx(_components.code,{children:`speed`}),` param allowed).`]}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`provider_name`,type:`string`,required:true,id:`param-provider-name-2`,children:_jsxs(_components.p,{children:[`TTS provider: `,_jsx(_components.code,{children:`CARTESIA`}),`, `,_jsx(_components.code,{children:`DEEPGRAM`}),`, `,_jsx(_components.code,{children:`ELEVENLABS`}),`, `,_jsx(_components.code,{children:`SARVAM`}),`, `,_jsx(_components.code,{children:`GOOGLE`}),`, `,_jsx(_components.code,{children:`HUME`}),`, or `,_jsx(_components.code,{children:`GROK`}),`.`]})}),_jsx(ParamField,{body:`model_name`,type:`string`,required:true,id:`param-model-name-2`,children:_jsx(_components.p,{children:`Model name for the TTS provider.`})}),_jsx(ParamField,{body:`language`,type:`string`,required:true,id:`param-language-1`,children:_jsx(_components.p,{children:`Language code.`})}),_jsx(ParamField,{body:`voice_id`,type:`string`,required:true,id:`param-voice-id`,children:_jsx(_components.p,{children:`Voice ID for the TTS provider.`})}),_jsx(ParamField,{body:`params`,type:`object`,id:`param-params-2`,children:_jsxs(_components.p,{children:[`Only `,_jsx(_components.code,{children:`speed`}),` is allowed.`]})})]})]}),`\n`,_jsxs(ParamField,{body:`sts`,type:`object`,id:`param-sts`,children:[_jsx(_components.p,{children:`Updated Speech-to-Speech configuration.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`speech_to_speech_enabled`,type:`boolean`,id:`param-speech-to-speech-enabled`,children:_jsx(_components.p,{children:`Whether speech-to-speech is enabled.`})}),_jsx(ParamField,{body:`provider_name`,type:`string`,required:true,id:`param-provider-name-3`,children:_jsxs(_components.p,{children:[`STS provider: `,_jsx(_components.code,{children:`GOOGLE`}),`, `,_jsx(_components.code,{children:`OPENAI`}),`, or `,_jsx(_components.code,{children:`GROK`}),`.`]})}),_jsx(ParamField,{body:`model_name`,type:`string`,required:true,id:`param-model-name-3`,children:_jsx(_components.p,{children:`Model name for the STS provider.`})}),_jsx(ParamField,{body:`voice_id`,type:`string`,required:true,id:`param-voice-id-1`,children:_jsx(_components.p,{children:`Voice ID for the STS provider.`})}),_jsx(ParamField,{body:`language`,type:`string`,required:true,id:`param-language-2`,children:_jsx(_components.p,{children:`Language code.`})}),_jsx(ParamField,{body:`params`,type:`object`,id:`param-params-3`,children:_jsx(_components.p,{children:`Additional provider-specific STS parameters.`})})]})]}),`\n`,_jsx(ParamField,{body:`prompt_content`,type:`string`,id:`param-prompt-content`,children:_jsx(_components.p,{children:`New prompt content — creates a new version of the agent’s internal prompt.`})}),`\n`,_jsx(ParamField,{body:`prompt`,type:`object`,id:`param-prompt`,children:_jsx(_components.p,{children:`Reference an existing prompt by name and optionally version.`})}),`\n`,_jsxs(ParamField,{body:`call_analysis_prompt`,type:`object`,id:`param-call-analysis-prompt`,children:[_jsx(_components.p,{children:`Updated call analysis prompt reference or inline analysis prompt content.`}),_jsxs(Expandable,{title:`properties`,children:[_jsx(ParamField,{body:`prompt_name`,type:`string`,required:true,id:`param-prompt-name`,children:_jsx(_components.p,{children:`Name of an existing analysis prompt.`})}),_jsx(ParamField,{body:`prompt_version`,type:`integer`,id:`param-prompt-version`,children:_jsx(_components.p,{children:`Specific analysis prompt version to use (omit for latest).`})}),_jsx(ParamField,{body:`custom_prompt`,type:`string`,id:`param-custom-prompt`,children:_jsx(_components.p,{children:`Inline analysis prompt content. If provided, a new analysis prompt version is created before linking it to the agent.`})})]})]}),`\n`,_jsx(ParamField,{body:`call_analysis_enabled`,type:`boolean`,id:`param-call-analysis-enabled`,children:_jsxs(_components.p,{children:[`Toggle call analysis on or off for the agent. Set this to `,_jsx(_components.code,{children:`true`}),` only when you\nwant call analysis to run. If `,_jsx(_components.code,{children:`true`}),`, provide `,_jsx(_components.code,{children:`call_analysis_prompt`}),` as well.`]})}),`\n`,_jsx(ParamField,{body:`call_analysis_schema`,type:`object`,id:`param-call-analysis-schema`,children:_jsx(_components.p,{children:`Updated schema describing the structured JSON output expected from call\nanalysis.`})}),`\n`,_jsx(ParamField,{body:`first_message_prompt`,type:`string`,id:`param-first-message-prompt`,children:_jsx(_components.p,{children:`Updated greeting message.`})}),`\n`,_jsx(ParamField,{body:`tools`,type:`object`,id:`param-tools`,children:_jsx(_components.p,{children:`Update agent tools. Only specified tools are modified.`})}),`\n`,_jsx(ParamField,{body:`widget_config`,type:`object`,id:`param-widget-config`,children:_jsx(_components.p,{children:`Updated widget configuration.`})}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Returns the complete updated agent object with all configurations and timestamps.`})]})}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 Agent","openapi":"PATCH /v1/public/agents/{agent_id}","description":"Update an existing agent — only provided fields are modified","href":"/api-reference/public/agent-update"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[{"title":"Try It Behavior","slug":"try-it-behavior","depth":3,"children":[]}]},{"title":"Authentication","slug":"authentication","depth":2,"children":[]},{"title":"Path Parameters","slug":"path-parameters","depth":2,"children":[]},{"title":"Request Body","slug":"request-body","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Update Agent","description":"Update an existing agent — only provided fields are modified","operationId":"updateAgent","tags":["Agents"],"security":["076e38d2-17ed-4bb7-8fca-1a02bca979b1"],"parameters":["40411741-6657-43a7-b001-150404de9e31"],"requestBody":"b5439834-dfb5-4af6-95d3-0e341d74bbb3","responses":{"200":"32625ff8-8d64-4f2f-bfb0-eb5255ad2387","401":"ceda4036-7704-4246-a00c-c9d097d61c6d","403":"38f9c76a-058c-48e3-9ddf-0c9b269a6fd0","404":"f2384ab2-27e1-4404-971e-cf49aec2385d","500":"363860f9-cb97-4666-9e65-17981230892b"},"method":"patch","type":"path","servers":["50017638-48c6-4a5f-93d1-b9ef6ecb312a"],"path":"/v1/public/agents/{agent_id}","baseUrlOptions":["https://api.eigi.ai"],"title":"Update Agent","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"40411741-6657-43a7-b001-150404de9e31":{"name":"agent_id","in":"path","required":true,"description":"The unique agent ID","schema":{"type":"string","isRequired":true,"description":"The unique agent ID","uniqueKey":"","typeLabel":"string"},"example":"68ea2517dbb84c09bae1ba0a"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","description":"All fields are optional — only provided fields will be updated.","properties":{"agent_name":{"type":"string","minLength":1,"maxLength":100,"description":"Agent name","uniqueKey":"agent_name","typeLabel":"string"},"agent_description":{"type":"string","maxLength":500,"description":"Agent description","uniqueKey":"agent_description","typeLabel":"string"},"agent_type":{"type":"string","enum":["INBOUND","OUTBOUND"],"description":"Agent type","uniqueKey":"agent_type","typeLabel":"enum\u003cstring>"},"agent_category":{"type":"string","enum":["Customer Service","Sales","Scheduling","Research","Healthcare","Customer Success","Education","Finance","HR","Legal","Productivity","Creative","IT/DevOps","E-commerce","Entertainment","Travel","Wellness","Anime","Cartoon","Gaming","Lifestyle","other"],"description":"Agent category","uniqueKey":"agent_category","typeLabel":"enum\u003cstring>"},"agent_tips":{"type":"array","items":{"type":"string","uniqueKey":"agent_tips.items.[INDEX]","typeLabel":"string"},"description":"Usage tips","uniqueKey":"agent_tips","typeLabel":"string[]"},"agent_mobile_number":{"type":"array","items":{"type":"string","uniqueKey":"agent_mobile_number.items.[INDEX]","typeLabel":"string"},"description":"Mobile numbers associated with the agent","uniqueKey":"agent_mobile_number","typeLabel":"string[]"},"stt":{"type":"object","required":["provider_name","model_name","language"],"properties":{"provider_name":{"type":"string","enum":["DEEPGRAM","WHISPER"],"description":"STT provider name","isRequired":true,"uniqueKey":"stt.provider_name","typeLabel":"enum\u003cstring>"},"model_name":{"type":"string","description":"Model name for the STT provider","example":"nova-2","isRequired":true,"uniqueKey":"stt.model_name","typeLabel":"string"},"language":{"type":"string","description":"Language code (e.g., en, hi, es, fr)","example":"en","isRequired":true,"uniqueKey":"stt.language","typeLabel":"string"},"params":{"type":"object","description":"Must be empty for public API - no additional STT params allowed","example":{},"uniqueKey":"stt.params","typeLabel":"object"}},"uniqueKey":"stt","typeLabel":"object"},"llm":{"type":"object","required":["provider_name","model_name"],"description":"LLM configuration. Use provider_name to choose a standard provider or CUSTOM_LLM. For standard providers, only params.temperature applies. For CUSTOM_LLM, use params.base_url, params.api_key, and optional params.API_TYPE.","properties":{"provider_name":{"type":"string","enum":["OPENAI","OPENAI_RESPONSES","ANTHROPIC","GOOGLE","GROK","OPENROUTER","CUSTOM_LLM"],"description":"LLM provider name","isRequired":true,"uniqueKey":"llm.provider_name","typeLabel":"enum\u003cstring>"},"model_name":{"type":"string","description":"Model name for the selected LLM provider","example":"gpt-4o","isRequired":true,"uniqueKey":"llm.model_name","typeLabel":"string"},"params":{"type":"object","description":"For standard providers, only temperature is used. For CUSTOM_LLM, provide base_url and api_key, and optionally API_TYPE.","properties":{"temperature":{"type":"number","minimum":0,"maximum":2,"description":"Standard providers only. Controls randomness (0.0-2.0).","uniqueKey":"llm.params.temperature","typeLabel":"number"},"base_url":{"type":"string","description":"CUSTOM_LLM only. Base URL for the custom LLM endpoint.","example":"https://llm.example.com/v1","uniqueKey":"llm.params.base_url","typeLabel":"string"},"api_key":{"type":"string","description":"CUSTOM_LLM only. API key for the custom LLM provider.","example":"sk-...","uniqueKey":"llm.params.api_key","typeLabel":"string"},"API_TYPE":{"type":"string","enum":["CHAT_COMPLETION","RESPONSES"],"description":"CUSTOM_LLM only. Optional; defaults to CHAT_COMPLETION when omitted.","uniqueKey":"llm.params.API_TYPE","typeLabel":"enum\u003cstring>"}},"example":{"temperature":0.7},"uniqueKey":"llm.params","typeLabel":"object"}},"uniqueKey":"llm","typeLabel":"object"},"tts":{"type":"object","required":["provider_name","model_name","language","voice_id"],"properties":{"provider_name":{"type":"string","enum":["CARTESIA","ELEVENLABS","SARVAM","GOOGLE","HUME"],"description":"TTS provider name","isRequired":true,"uniqueKey":"tts.provider_name","typeLabel":"enum\u003cstring>"},"model_name":{"type":"string","description":"Model name for the TTS provider","example":"sonic-2","isRequired":true,"uniqueKey":"tts.model_name","typeLabel":"string"},"language":{"type":"string","description":"Language code (e.g., en, hi)","example":"en","isRequired":true,"uniqueKey":"tts.language","typeLabel":"string"},"voice_id":{"type":"string","description":"Voice ID from the TTS provider","example":"a0e99841-438c-4a64-b679-ae501e7d6091","isRequired":true,"uniqueKey":"tts.voice_id","typeLabel":"string"},"params":{"type":"object","description":"Only 'speed' param is allowed for public API","properties":{"speed":{"type":"number","description":"Speech speed multiplier","uniqueKey":"tts.params.speed","typeLabel":"number"}},"example":{"speed":1},"uniqueKey":"tts.params","typeLabel":"object"}},"uniqueKey":"tts","typeLabel":"object"},"call_analysis_prompt":{"type":"object","description":"Optional call analysis prompt reference. Provide custom_prompt to create a new analysis prompt version before linking it to the agent.","properties":{"prompt_name":{"type":"string","description":"Name of existing analysis prompt","isRequired":true,"uniqueKey":"call_analysis_prompt.prompt_name","typeLabel":"string"},"prompt_version":{"type":"integer","description":"Specific version (omit for latest)","uniqueKey":"call_analysis_prompt.prompt_version","typeLabel":"integer"},"custom_prompt":{"type":"string","description":"Inline analysis prompt content","uniqueKey":"call_analysis_prompt.custom_prompt","typeLabel":"string"}},"required":["prompt_name"],"uniqueKey":"call_analysis_prompt","typeLabel":"object"},"call_analysis_enabled":{"type":"boolean","description":"Toggle call analysis on or off for the agent. Set to true only when you want call analysis to run; when true, provide call_analysis_prompt as well.","uniqueKey":"call_analysis_enabled","typeLabel":"boolean"},"call_analysis_schema":{"type":"object","description":"Optional schema for structured call analysis output, keyed by field name.","additionalProperties":{"type":"object","properties":{"type":{"type":"string","enum":["str","int","float","bool","list","dict","Optional[str]","Optional[int]","Optional[float]","Optional[bool]","Optional[list]","Optional[dict]"],"description":"Expected type for this call analysis field.","isRequired":true,"uniqueKey":"call_analysis_schema.additionalProperties.type","typeLabel":"enum\u003cstring>"}},"required":["type"],"additionalProperties":false,"uniqueKey":"call_analysis_schema.additionalProperties","typeLabel":"object"},"example":{"summary":{"type":"str"},"customer_intent":{"type":"Optional[str]"},"follow_up_required":{"type":"bool"}},"uniqueKey":"call_analysis_schema","typeLabel":"object"},"prompt_content":{"type":"string","description":"New prompt content — creates a new version of the agent's internal prompt","uniqueKey":"prompt_content","typeLabel":"string"},"prompt":{"type":"object","description":"Reference to an existing prompt","properties":{"prompt_name":{"type":"string","isRequired":true,"uniqueKey":"prompt.prompt_name","typeLabel":"string"},"prompt_version":{"type":"integer","uniqueKey":"prompt.prompt_version","typeLabel":"integer"}},"required":["prompt_name"],"uniqueKey":"prompt","typeLabel":"object"},"first_message_prompt":{"type":"string","description":"Agent's greeting message","uniqueKey":"first_message_prompt","typeLabel":"string"},"tools":{"type":"object","description":"Configure agent tools. Each tool can be true (enable), false (disable), or an object with configuration.","properties":{"end_call":{"oneOf":[{"type":"boolean","description":"End call tool - enabled by default. Use true/false to toggle.","uniqueKey":"tools.end_call.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"End call tool - enabled by default. Use true/false to toggle.","uniqueKey":"tools.end_call.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.end_call","typeLabel":"boolean | object"},"transfer_call":{"oneOf":[{"type":"boolean","description":"Transfer call tool. When using config object, requires transfer_phone_number.","uniqueKey":"tools.transfer_call.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Transfer call tool. When using config object, requires transfer_phone_number.","required":["transfer_phone_number"],"properties":{"transfer_phone_number":{"type":"string","description":"Phone number to transfer to","isRequired":true,"uniqueKey":"tools.transfer_call.oneOf.1.transfer_phone_number","typeLabel":"string"}},"uniqueKey":"tools.transfer_call.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.transfer_call","typeLabel":"boolean | object"},"schedule_call":{"oneOf":[{"type":"boolean","description":"Schedule call tool. Optional allow_immediate config.","uniqueKey":"tools.schedule_call.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Schedule call tool. Optional allow_immediate config.","properties":{"allow_immediate":{"type":"boolean","default":false,"uniqueKey":"tools.schedule_call.oneOf.1.allow_immediate","typeLabel":"boolean"}},"uniqueKey":"tools.schedule_call.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.schedule_call","typeLabel":"boolean | object"},"set_language":{"oneOf":[{"type":"boolean","description":"Set language tool. Optional language_string config.","uniqueKey":"tools.set_language.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Set language tool. Optional language_string config.","properties":{"language_string":{"type":"string","default":"en-US","uniqueKey":"tools.set_language.oneOf.1.language_string","typeLabel":"string"}},"uniqueKey":"tools.set_language.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.set_language","typeLabel":"boolean | object"},"background_audio":{"oneOf":[{"type":"boolean","description":"Background audio tool with audio file and volume config.","uniqueKey":"tools.background_audio.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"Background audio tool with audio file and volume config.","properties":{"audio_files":{"type":"array","items":{"type":"string","enum":["env1.wav","honk1.wav","market1.wav","office1.mp3","office2.mp3","office3.mp3","office4.wav","office5.wav","temple1.wav","temple2.wav"],"uniqueKey":"tools.background_audio.oneOf.1.audio_files.items.[INDEX]","typeLabel":"enum\u003cstring>"},"uniqueKey":"tools.background_audio.oneOf.1.audio_files","typeLabel":"enum\u003cstring>[]"},"background_noise_reduce":{"type":"boolean","default":true,"uniqueKey":"tools.background_audio.oneOf.1.background_noise_reduce","typeLabel":"boolean"},"default_volume":{"type":"number","minimum":0.1,"maximum":1,"default":0.2,"uniqueKey":"tools.background_audio.oneOf.1.default_volume","typeLabel":"number"}},"uniqueKey":"tools.background_audio.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.background_audio","typeLabel":"boolean | object"},"user_idle":{"oneOf":[{"type":"boolean","description":"User idle detection with timeout and retry config.","uniqueKey":"tools.user_idle.oneOf.0","typeLabel":"boolean"},{"type":"object","description":"User idle detection with timeout and retry config.","properties":{"idle_timeout_seconds":{"type":"number","minimum":3,"maximum":30,"default":10,"uniqueKey":"tools.user_idle.oneOf.1.idle_timeout_seconds","typeLabel":"number"},"max_retry_count":{"type":"integer","minimum":1,"maximum":10,"default":3,"uniqueKey":"tools.user_idle.oneOf.1.max_retry_count","typeLabel":"integer"}},"uniqueKey":"tools.user_idle.oneOf.1","typeLabel":"object"}],"uniqueKey":"tools.user_idle","typeLabel":"boolean | object"}},"uniqueKey":"tools","typeLabel":"object"},"widget_config":{"type":"object","description":"Widget configuration","properties":{"widget_interface":{"type":"object","uniqueKey":"widget_config.widget_interface","typeLabel":"object"},"widget_appearance":{"type":"object","uniqueKey":"widget_config.widget_appearance","typeLabel":"object"},"widget_avatar":{"type":"object","uniqueKey":"widget_config.widget_avatar","typeLabel":"object"},"widget_tnc_config":{"type":"object","uniqueKey":"widget_config.widget_tnc_config","typeLabel":"object"}},"uniqueKey":"widget_config","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"update_name":{"title":"update_name","summary":"Update agent name and prompt","value":{"agent_name":"Updated Support Agent","prompt_content":"You are an updated customer support agent.","call_analysis_enabled":true,"call_analysis_prompt":{"prompt_name":"support_call_analysis","custom_prompt":"Return the summary, customer intent, and next best action."},"call_analysis_schema":{"summary":{"type":"str"},"customer_intent":{"type":"Optional[str]"},"next_best_action":{"type":"str"}}}},"custom_llm":{"title":"custom_llm","summary":"Switch agent to CUSTOM_LLM","value":{"llm":{"provider_name":"CUSTOM_LLM","model_name":"custom-model","params":{"base_url":"https://llm.example.com/v1","api_key":"sk-...","API_TYPE":"CHAT_COMPLETION"}}}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"32625ff8-8d64-4f2f-bfb0-eb5255ad2387":{"description":"Agent updated successfully","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","description":"Agent ID","uniqueKey":"id","typeLabel":"string"},"agent_name":{"type":"string","description":"Agent name","uniqueKey":"agent_name","typeLabel":"string"},"agent_description":{"type":"string","description":"Agent description","uniqueKey":"agent_description","typeLabel":"string"},"agent_type":{"type":"string","enum":["INBOUND","OUTBOUND"],"description":"Agent type","uniqueKey":"agent_type","typeLabel":"enum\u003cstring>"},"agent_category":{"type":"string","description":"Agent category","uniqueKey":"agent_category","typeLabel":"string"},"agent_tips":{"type":"array","items":{"type":"string","uniqueKey":"agent_tips.items.[INDEX]","typeLabel":"string"},"description":"Usage tips","uniqueKey":"agent_tips","typeLabel":"string[]"},"agent_mobile_number":{"type":"array","items":{"type":"string","uniqueKey":"agent_mobile_number.items.[INDEX]","typeLabel":"string"},"description":"Associated mobile numbers","uniqueKey":"agent_mobile_number","typeLabel":"string[]"},"stt":{"type":"object","description":"STT configuration","uniqueKey":"stt","typeLabel":"object"},"llm":{"type":"object","description":"LLM configuration","uniqueKey":"llm","typeLabel":"object"},"tts":{"type":"object","description":"TTS configuration","uniqueKey":"tts","typeLabel":"object"},"sts":{"type":"object","description":"STS configuration (if set)","uniqueKey":"sts","typeLabel":"object"},"call_analysis_enabled":{"type":"boolean","description":"Whether call analysis is enabled for the agent","uniqueKey":"call_analysis_enabled","typeLabel":"boolean"},"prompt":{"type":"object","description":"Prompt reference","properties":{"prompt_name":{"type":"string","uniqueKey":"prompt.prompt_name","typeLabel":"string"},"prompt_version":{"type":"integer","uniqueKey":"prompt.prompt_version","typeLabel":"integer"},"prompt_content":{"type":"string","uniqueKey":"prompt.prompt_content","typeLabel":"string"}},"uniqueKey":"prompt","typeLabel":"object"},"first_message_prompt":{"type":"string","description":"Agent's greeting message","uniqueKey":"first_message_prompt","typeLabel":"string"},"dynamic_variables":{"type":"array","items":{"type":"string","uniqueKey":"dynamic_variables.items.[INDEX]","typeLabel":"string"},"description":"Dynamic variables in the prompt","uniqueKey":"dynamic_variables","typeLabel":"string[]"},"tools":{"type":"object","description":"Configured tools","uniqueKey":"tools","typeLabel":"object"},"widget_config":{"type":"object","description":"Widget configuration","uniqueKey":"widget_config","typeLabel":"object"},"MediaFiles":{"type":"array","items":{"type":"object","properties":{"fileType":{"type":"string","uniqueKey":"MediaFiles.items.[INDEX].fileType","typeLabel":"string"},"mediaUrl":{"type":"string","uniqueKey":"MediaFiles.items.[INDEX].mediaUrl","typeLabel":"string"}},"uniqueKey":"MediaFiles.items.[INDEX]","typeLabel":"object"},"description":"Media files associated with the agent","uniqueKey":"MediaFiles","typeLabel":"object[]"},"created_at":{"type":"string","format":"date-time","description":"Creation timestamp","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","description":"Last update timestamp","uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":"\u003cstring>","agent_name":"\u003cstring>","agent_description":"\u003cstring>","agent_type":"INBOUND","agent_category":"\u003cstring>","agent_tips":["\u003cstring>"],"agent_mobile_number":["\u003cstring>"],"stt":{},"llm":{},"tts":{},"sts":{},"call_analysis_enabled":true,"prompt":{"prompt_name":"\u003cstring>","prompt_version":123,"prompt_content":"\u003cstring>"},"first_message_prompt":"\u003cstring>","dynamic_variables":["\u003cstring>"],"tools":{},"widget_config":{},"MediaFiles":[{"fileType":"\u003cstring>","mediaUrl":"\u003cstring>"}],"created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z"}}},"exampleType":"generated"}},"exampleType":"generated"},"ceda4036-7704-4246-a00c-c9d097d61c6d":{"description":"Unauthorized - Invalid API key","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Error message","uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"38f9c76a-058c-48e3-9ddf-0c9b269a6fd0":{"description":"Forbidden - Access denied","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Error message","uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"f2384ab2-27e1-4404-971e-cf49aec2385d":{"description":"Not found","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Error message","uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"363860f9-cb97-4666-9e65-17981230892b":{"description":"Internal server error","content":{"application/json":{"schema":{"type":"object","properties":{"detail":{"type":"string","description":"Error message","uniqueKey":"detail","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"detail":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"076e38d2-17ed-4bb7-8fca-1a02bca979b1":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key for authentication. Get your API key from the eigi.ai Dashboard under Settings → API Keys.","scopes":[]}}},"servers":{"50017638-48c6-4a5f-93d1-b9ef6ecb312a":{"url":"https://api.eigi.ai","description":"Production server"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"X-API-Key","description":"API key for authentication. Get your API key from the eigi.ai Dashboard under Settings → API Keys.","scopes":[]},"schema":{"title":"X-API-Key","type":"string","description":"API key for authentication. Get your API key from the eigi.ai Dashboard under Settings → API Keys.","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"ApiKeyAuth","name":"X-API-Key"}],"title":"ApiKeyAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"eigiai","siteName":"eigi.ai Documentation","title":"Update Agent - eigi.ai Documentation","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-08T13:46:42.824Z","originalFileLocation":"api-reference/public/agent-update.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 agent — only provided fields are modified\">\u003cmeta data-mint-head name=\"application-name\" content=\"eigi.ai Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/eigiai/wo8WemLDUPr3UMVc/_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/eigiai/wo8WemLDUPr3UMVc/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/eigiai/wo8WemLDUPr3UMVc/_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/eigiai/wo8WemLDUPr3UMVc/_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/eigiai/wo8WemLDUPr3UMVc/_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/eigiai/wo8WemLDUPr3UMVc/_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/eigiai/wo8WemLDUPr3UMVc/_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/eigiai/wo8WemLDUPr3UMVc/_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/eigiai/wo8WemLDUPr3UMVc/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Update Agent - eigi.ai Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Update an existing agent — only provided fields are modified\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"eigi.ai Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.eigi.ai/api-reference/public/agent-update\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://eigiai.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=Update+Agent\u0026amp;description=Update+an+existing+agent+%E2%80%94+only+provided+fields+are+modified\u0026amp;theme=19969dd275fb7ea52662898a\u0026amp;signature=aad2630f13e83e0c5c2a03134b19d0afe6ad36e60c99f66b11147149028e40af\">\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 Agent - eigi.ai Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Update an existing agent — only provided fields are modified\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://eigiai.mintlify.site/_mintlify/api/og/v2?division=Agents\u0026amp;title=Update+Agent\u0026amp;description=Update+an+existing+agent+%E2%80%94+only+provided+fields+are+modified\u0026amp;theme=19969dd275fb7ea52662898a\u0026amp;signature=aad2630f13e83e0c5c2a03134b19d0afe6ad36e60c99f66b11147149028e40af\">\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/eigiai/wo8WemLDUPr3UMVc/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"eigi.ai Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#16A34A\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.eigi.ai/api-reference/public/agent-update\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/public/agent-update.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.eigi.ai/#organization\",\"name\":\"eigi.ai Documentation\",\"url\":\"https://docs.eigi.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/eigiai/U_iGTsID5xNathIa/logo/eigi-light.png?fit=max\u0026auto=format\u0026n=U_iGTsID5xNathIa\u0026q=85\u0026s=9550fc009fb24e0ea282413ec1efeb8e\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.eigi.ai#website\",\"name\":\"eigi.ai Documentation\",\"url\":\"https://docs.eigi.ai\",\"publisher\":{\"@id\":\"https://docs.eigi.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.eigi.ai/api-reference/public/agent-update#webpage\",\"url\":\"https://docs.eigi.ai/api-reference/public/agent-update\",\"name\":\"Update Agent\",\"description\":\"Update an existing agent — only provided fields are modified\",\"dateModified\":\"2026-06-08T13:46:42.824Z\",\"isPartOf\":{\"@id\":\"https://docs.eigi.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.eigi.ai/api-reference/public/agent-update#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.eigi.ai/api-reference/public/agent-update#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Agents\",\"item\":\"https://docs.eigi.ai/api-reference/public/agent-create\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Update Agent\",\"item\":\"https://docs.eigi.ai/api-reference/public/agent-update\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.eigi.ai/api-reference/public/agent-update#apireference\",\"headline\":\"Update Agent\",\"name\":\"Update Agent\",\"description\":\"Update an existing agent — only provided fields are modified\",\"url\":\"https://docs.eigi.ai/api-reference/public/agent-update\",\"mainEntityOfPage\":{\"@id\":\"https://docs.eigi.ai/api-reference/public/agent-update#webpage\"},\"dateModified\":\"2026-06-08T13:46:42.824Z\",\"publisher\":{\"@id\":\"https://docs.eigi.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.eigi.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"eigi.ai Documentation\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"eigi.ai Documentation\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/public/agent-update.md","siteName":"eigi.ai Documentation","nav":{"global":{"anchors":[{"anchor":"Dashboard","icon":"grid","href":"https://eigi.ai"},{"anchor":"Support","icon":"envelope","href":"mailto:buddy@eigi.ai"}]},"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"Eigi Computer","pages":[{"title":"Eigi Computer","href":"/eigi-computer/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"group":"Conversations","pages":[{"title":"Get Conversation by ID","openapi":"GET /v1/public/conversations/{conversation_id}","href":"/api-reference/public/get-conversation"},{"title":"List Conversations","openapi":"GET /v1/public/conversations","href":"/api-reference/public/list-conversations"},{"title":"Initiate Outbound Call","openapi":"POST /v1/public/calls/outbound","href":"/api-reference/public/outbound-call"}]},{"group":"Chat","pages":[{"title":"Send Chat Message","openapi":"POST /v1/public/chat","href":"/api-reference/public/chat-send-message"},{"title":"List Chat Sessions","openapi":"GET /v1/public/chat/sessions","href":"/api-reference/public/chat-list-sessions"},{"title":"Get Chat Session","openapi":"GET /v1/public/chat/sessions/{session_id}","href":"/api-reference/public/chat-get-session"},{"title":"Get First Message","openapi":"GET /v1/public/agents/{agent_id}/first-message","href":"/api-reference/public/chat-first-message"}]},{"group":"Prompts","pages":[{"title":"Create Prompt","openapi":"POST /v1/public/prompts","href":"/api-reference/public/prompt-create"},{"title":"List Prompts","openapi":"GET /v1/public/prompts","href":"/api-reference/public/prompt-list"},{"title":"Get Prompt","openapi":"GET /v1/public/prompts/{prompt_name}","href":"/api-reference/public/prompt-get"},{"title":"Update Prompt","openapi":"PATCH /v1/public/prompts/{prompt_name}","href":"/api-reference/public/prompt-update"},{"title":"Get Prompt Versions","openapi":"GET /v1/public/prompts/{prompt_name}/versions","href":"/api-reference/public/prompt-versions"},{"title":"Delete Prompt","openapi":"DELETE /v1/public/prompts/{prompt_name}","href":"/api-reference/public/prompt-delete"}]},{"group":"Agents","pages":[{"title":"Create Agent","openapi":"POST /v1/public/agents","href":"/api-reference/public/agent-create"},{"title":"List Agents","openapi":"GET /v1/public/agents","href":"/api-reference/public/agent-list"},{"title":"Get Agent","openapi":"GET /v1/public/agents/{agent_id}","href":"/api-reference/public/agent-get"},{"title":"Get Agent Dynamic Variables","openapi":"GET /v1/public/agents/{agent_id}/dynamic-variables","description":"Retrieve the normalized dynamic variable definitions configured for an agent","href":"/api-reference/public/agent-dynamic-variables"},{"title":"Update Agent","openapi":"PATCH /v1/public/agents/{agent_id}","href":"/api-reference/public/agent-update"},{"title":"Delete Agent","openapi":"DELETE /v1/public/agents/{agent_id}","description":"Permanently delete an agent and its associated internal prompt","href":"/api-reference/public/agent-delete"}]},{"group":"Utilities","pages":[{"title":"List Providers","openapi":"GET /v1/public/providers","href":"/api-reference/public/providers-list"},{"title":"List Voices","openapi":"GET /v1/public/voices","href":"/api-reference/public/voices-list"},{"title":"Get Mobile Numbers","openapi":"GET /v1/public/mobile-numbers","href":"/api-reference/public/mobile-numbers"}]}]}]},"basePath":"","title":"Update Agent - eigi.ai Documentation","deploymentId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","buildId":"dpl_Em2U4NQQ2N2DE3HPbPUJVZLnAtvc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-_HcdDqS2.js","snippetPresets-CXnm-WO6.js","utils-Dg59J__o.js","style-to-object-BY3JEAdk.js","utils-D8TRpdk7.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-B6QaxWc5.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DeMZ-lcM.js","_Uint8Array-BjA2mcVW.js","isObject-FP1Yky1u.js","ApiExamples-cjPyMv63.js","usePlaygroundInputsStore-D7BWoaw4.js","shallow-Z1ceDNSG.js","isEqual-BObTuQrO.js","CodeSnippets-D1UZ1AE-.js","CodeSnippet-B373COAT.js","getApiPlaygroundDisplay-CfL-UuDS.js","Page-DuqezyvM.js","DynamicMarkdown-5yMTCLas.js","SectionHeading-BxT1HYfP.js","icon-DYJTTD3g.js","MethodPill-4AyycJeu.js","getPastedJson-Bp3WV6cN.js","Check2Icon-PhZu6Gry.js","axios-CsQoIw0U.js","Markdown-Dy9a8hT8.js","AssistantPageLink-87tSPwGm.js","dist-CXMB3QQU.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}