Skip to main content
ActionsVersion: v3

Update Action

PUT/conversation-ai/agents/{agentId}/actions/{actionId}

Updates an existing action's configuration — name, description, trigger condition and behaviour settings. For customApi ("API Call") actions details.apiConfig is optional: omit it to leave the HTTP definition untouched. When sent, it is merged ONE LEVEL DEEP over the stored config — a top-level key you send replaces the stored value outright, keys you omit are kept. Nested values (headers, queryParams, bodyTemplate, parameters, outputFields) are replaced whole, so send the complete object rather than just the entry you changed. authentication is the exception: secret fields omitted, or returned as the redacted placeholder, keep the stored secret.

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your access token.

Scope:conversation-ai.write
Auth methods:OAuthPrivate Integration
Token type:Sub-Account Token

Request​

Headers

Versionstringrequired

API Version

Available optionsv3
Example:v3

Path Parameters

actionIdstringrequired

The unique identifier of the action ID Attached to the agent

Example:6578278e879ad2646715ba9c
agentIdstringrequired

The unique identifier of the AI agent

Example:ve9EPM428h8vShlRW1KT

Body

typestringrequired

Type of action to perform

Available optionstriggerWorkflowupdateContactFieldappointmentBookingstopBothumanHandOveradvancedFollowuptransferBotcustomApi
Example:triggerWorkflow
namestringrequired

Name of the action (3-50 characters)

Example:Trigger a Workflow
detailsobjectrequired

Action-specific details. The structure depends on the action type. For TRIGGER_WORKFLOW use triggerWorkflowDto, for UPDATE_CONTACT_FIELD use updateContactFieldDto, for APPOINTMENT_BOOKING use appointmentBookingDto, for STOP_BOT use stopBotDto, for HUMAN_HAND_OVER use humanHandOverDto, for ADVANCED_FOLLOWUP use advancedFollowupDto, for TRANSFER_BOT use transferBotDto, and for CUSTOM_API use CustomApiDetailsDTO (the API Call config).

Example
{
  "workflowIds": [
    "workflow123"
  ],
  "triggerCondition": "When user requests appointment"
}

Response

Successful response

dataobjectrequired

Updated action details (classic action or customApi API Call action)

successbooleanrequired

Success status of the request

Example:true