Delete a webhook subscription
Disable the subscription and remove it from future subscription reads. Send If-Match with the ETag from a create or update response, or from a subscription GET when you have none. A write-only creator can reuse a retained ETag; a GET needs admin:read. OAuth deletion also needs destructive:write. A successful deletion returns 204 with no response body.
Path Parameters
- Type: stringFormat: uuidwebhook
Subscription Id required
Headers
- Type: stringIf
- Match min length:1requiredETag from a create or update response you already have, or from the latest GET when you have none.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for delete/external/v2/webhook-subscriptions/{webhookSubscriptionId}
curl https://sales-api.artemis.solar/external/v2/webhook-subscriptions/123e4567-e89b-12d3-a456-426614174000 \
--request DELETE \
--header 'If-Match: "copy-the-etag-from-your-latest-get"' \
--header 'x-api-key: YOUR_SECRET_TOKEN'
No Body

