Skip to main content
Version: 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.

Request​

Version stringrequired

API Version

Available optionsv3
actionId stringrequired

The unique identifier of the action ID Attached to the agent

agentId stringrequired

The unique identifier of the AI agent

application/json

Bodyrequired

    typestringrequired

    Type of action to perform

    Available optionstriggerWorkflowupdateContactFieldappointmentBookingstopBothumanHandOveradvancedFollowuptransferBotcustomApi
    namestringrequired

    Name of the action (3-50 characters)

    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).

application/json

Successful response

Schema
    dataobjectrequired

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

    successbooleanrequired

    Success status of the request