Passer au contenu principal
PUT
/
v2
/
private
/
webhooks
/
{id}
/
events
/
unsubscribe
Unsubscribe Webhook events
curl --request PUT \
  --url https://api.crowdchange.dev/v2/private/webhooks/{id}/events/unsubscribe \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "events": [
    "<string>"
  ]
}
'
{
  "id": 1,
  "url": "https://demo.crowdchange.test/webhooks/handle",
  "signing_secret": "whsec_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ab",
  "language": "en",
  "created_at": "2024-01-01 16:00:03",
  "events": [
    {
      "id": 1,
      "name": "fundraiser_created",
      "created_at": "string"
    }
  ]
}

Path parameters

id
integer
requis
Webhook ID.

Body

events
string[]
requis
Events to unsubscribe.

Response

id
integer
Webhook ID.
url
string
Webhook URL.
signing_secret
string
Webhook-specific secret used to verify CrowdChange-Webhook-Signature on outbound deliveries. Store this value securely.
language
string
Webhook language. Allowed values: en, fr
created_at
string
Webhook creation date.
events
object[]
List of subscribed events.
Other responses
StatusDescription
400Bad Request
401Unauthorized
403Forbidden
{
  "id": 1,
  "url": "https://demo.crowdchange.test/webhooks/handle",
  "signing_secret": "whsec_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ab",
  "language": "en",
  "created_at": "2024-01-01 16:00:03",
  "events": [
    {
      "id": 1,
      "name": "fundraiser_created",
      "created_at": "string"
    }
  ]
}