Skip to main content
PATCH
/
v2
/
workflows
/
{id}
/
webhooks
/
{webhook_trigger_id}
Update webhook trigger
curl --request PATCH \
  --url https://api.portable.io/v2/workflows/{id}/webhooks/{webhook_trigger_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "status": "active"
}
'
{
  "data": {
    "id": 123,
    "webhook_id": "<string>",
    "workflow_id": 123,
    "provider": "slack",
    "url": "<string>",
    "status": "active",
    "trigger_count": 123,
    "credential_source_id": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "event_type": "<string>",
    "last_triggered_at": "2023-11-07T05:31:56Z"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

id
integer<int>
required

ID

webhook_trigger_id
integer
required

The database ID (integer) of the WebhookTrigger

Body

application/json
status
enum<string>

Webhook status

Available options:
active,
paused,
disabled

Response

OK

data
object
required