Skip to main content
PATCH
/
triggers
/
{id}
Update a flow trigger
curl --request PATCH \
  --url https://app.kapso.ai/api/v1/triggers/{id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '{
  "trigger": {
    "active": false
  }
}'
{
  "data": {
    "id": "trigger-123abc",
    "flow_id": "flow-456def",
    "trigger_type": "inbound_message",
    "active": true,
    "display_name": "Customer Support Trigger",
    "triggerable": {
      "id": "inbound-trigger-123",
      "whatsapp_config_id": "config-789ghi"
    },
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

X-API-Key
string
header
required

API key required for all endpoints

Path Parameters

id
string<uuid>
required

Body

application/json
trigger
object
required

Response

Flow trigger updated successfully

data
object
I