Skip to main content
POST
Create a webhook action

Authorizations

Authorization
string
header
required

Path Parameters

campaignId
string
required
controllerId
string
required

Body

application/json

Body of a POST /v2/campaigns/{campaignId}{version:(/version/.+)?}/controllers/{controllerId}/actions/webhooks request.

component_ids
string[]
component_references
object[]
data
object
dynamic_data

Choose between static or dynamic dynamic data. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use WebhookActionContext.

enabled

Choose between static or dynamic enabled. Buildtime expressions use ControllerBuildtimeContext.

quality
enum<string>
Available options:
ALWAYS,
HIGH,
LOW
webhook_id

Choose between static or dynamic webhook id. Buildtime expressions use ControllerBuildtimeContext.

Response

Successful response

action_id
string
action_type
enum<string>
Available options:
WEBHOOK
component_ids
string[]
component_references
object[]
enabled

The enabled as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.

quality
enum<string>
Available options:
ALWAYS,
HIGH,
LOW
data
object
dynamic_data

The dynamic data as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext. Runtime expressions use WebhookActionContext.

webhook_id

The webhook id as configured: a literal value, or an expression (type:string) when defined dynamically. Buildtime expressions use ControllerBuildtimeContext.