Skip to content
cascadehook.docs
API referenceEndpoints

Update endpoint configuration or enabled state

URL changes clear verification and disable delivery. Enabling requires verification and a signing secret. Replacing subscriptions changes future fan-out. Ask before modifying existing receiver configuration.

PATCH
/v1/endpoints/{endpoint_id}

URL changes clear verification and disable delivery. Enabling requires verification and a signing secret. Replacing subscriptions changes future fan-out. Ask before modifying existing receiver configuration.

Authorization

projectAPIKey
headerAuthorizationBearer <ch_dev_ or ch_live_ project API key>

Read CASCADEHOOK_API_KEY from the local environment. Never print keys or headers. Scope is the project selected when the key was created.

Path Parameters

endpoint_id*string
Formatuuid

Request Body

application/json
  1. body

Only supplied fields change; null is rejected. URL changes clear verification and disable delivery. Enabling requires a signing secret and verified ownership. event_types replaces the subscription list.

Properties1 <= properties
url?string

HTTPS, no credentials/fragment. Maximum 2048 UTF-8 bytes. Public destination required at verification/delivery; redirects are rejected.

Match^[Hh][Tt][Tt][Pp][Ss]://
Formaturi
Lengthlength <= 2048
enabled?boolean
event_types?array<>
Items1 <= items <= 100

Response Body

Updated endpoint.

application/json
  1. response
id*string
Formatuuid
project_id*string
Formatuuid
url*string

HTTPS, no credentials/fragment. Maximum 2048 UTF-8 bytes. Public destination required at verification/delivery; redirects are rejected.

Match^[Hh][Tt][Tt][Pp][Ss]://
Formaturi
Lengthlength <= 2048
enabled*boolean
verified_at*|
Formatdate-time
has_signing_secret*boolean
event_types*array<>
Items1 <= items <= 100
created_at*string
Formatdate-time
updated_at*string
Formatdate-time
Example Request
curl -X PATCH 'https://api.cascadehook.com/v1/endpoints/497f6eca-6276-4993-bfeb-53cbbbba6f08' \  -H 'Content-Type: application/json' \  -d '{  "enabled": true}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "project_id": "405d8375-3514-403b-8c43-83ae74cfe0e9",  "url": "http://example.com",  "enabled": true,  "verified_at": "2019-08-24T14:15:22Z",  "has_signing_secret": true,  "event_types": [    "string"  ],  "created_at": "2019-08-24T14:15:22Z",  "updated_at": "2019-08-24T14:15:22Z"}