Unsubscribe webhook
Use case
Here you can learn how to unsubscribe from the existing webhook.
Use case data
API parameters with values
Unsubscribing from existing webhook subscription with ID-1004.
.../notifications/subscriptions/ID-1004
Sample call
To update the existing webhook subscription, make the API call below:
https://notification-api.sandbox.tuumplatform.com/api/v1/notifications/subscriptions/ID-1004
Sample request
Here is a sample request for unsubscribing from the existing webhook subscription:
https://notification-api.sandbox.tuumplatform.com/api/v1/notifications/subscriptions/ID-1004
curl -X DELETE 'https://notification-api.sandbox.tuumplatform.com/api/v1/notifications/subscriptions/ID-1004https://notification-api.sandbox.tuumplatform.com/api/v1/notifications/subscriptions/ID-1004m.com/api/v1/notifications/subscriptions/ID-1004' \
-H 'x-auth-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHBpcnlEVGltZSI6IjIwMjMtMDctMjBUMTM6NTg6MTkiLCJyb2xlcyI6WyJBRE1JTiJdLCJuYW1lIjoiSm9obiBPZmZpY2VyIiwiZW1wbG95ZWVJZCI6IjEiLCJ0ZW5hbnRDb2RlIjoiTUIiLCJleHAiOjE2ODk4NjE0OTl9.XY-A-LL5LfDtibp_KAIEHQDu22GCTpXpLbjlqDQWPVs' \
-d ''
Sample response
Below you will find the response body to the sample request:
Response
Result
The existing webhook subscription with ID-1004
is unsubscribed.