Skip to main content
PUT
/
v0
/
action
Update an existing action
curl --request PUT \
  --url https://{hostname}.gable.ai/v0/action \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <api-key>' \
  --data '
{
  "actionId": "<string>",
  "name": "email on pricing asset change",
  "triggers": [
    {
      "triggerType": "source",
      "triggerValues": [
        "<string>"
      ]
    }
  ],
  "destinations": [
    {
      "destinationType": "slack",
      "slackChannelIds": [
        "<string>"
      ]
    }
  ],
  "isActive": true
}
'
{
  "actionId": "<string>"
}

Authorizations

X-API-KEY
string
header
required

Body

application/json
actionId
string
required

The unique identifier of the action

name
string
required

The name of the action

Example:

"email on pricing asset change"

triggers
object[]
required
Minimum array length: 1
destinations
object[]
required
isActive
boolean
required

Whether the action is active or not

Example:

true

Response

Successful operation

actionId
string
required

The unique identifier of the updated action