Update Omni Flow Agent
Update an existing agent
Headers
x-api-keystringrequiredAPI key used for authenticating requests to the API.
x-workspace-idstringrequiredWorkspace identifier for the API.
Path Parameters
agentIdstringrequiredThe unique identifier of the agent to update
Request Body
namestringNew name for the agent
llmModelstringNew language model to use
ttsModelobjectResponse Fields
_idstringThe unique identifier for the OmniFlowAgent.
workspaceIdstringThe identifier of the workspace where the OmniFlowAgent is configured.
userIdstringThe identifier of the user associated with the OmniFlowAgent, if any.
namestringThe name of the OmniFlowAgent.
llmModelstringThe language model used by the OmniFlowAgent, such as 'gpt-4o-mini'.
phoneNumberIdstringThe identifier of the phone number associated with the OmniFlowAgent.
settingsobjectA flexible schema for storing custom settings related to the OmniFlowAgent.
statusstringThe operational status of the OmniFlowAgent, such as 'pending', 'ready', or 'error'.
createdAtstringTimestamp when the conversation was created.
updatedAtstringTimestamp when the conversation was last updated.
{
"_id": "agentIdExample",
"workspaceId": "workspaceIdExample",
"userId": "userIdExample",
"name": "Updated Agent Name",
"llmModel": "gpt-4o-mini",
"phoneNumberId": "phoneNumberIdExample",
"settings": {
"customSetting": "value"
},
"status": "ready",
"createdAt": "2025-01-01T12:00:00Z",
"updatedAt": "2025-01-02T12:00:00Z"
}