DELETE /webhooks/:id
A DELETE
to the /webhooks/:id
endpoint allows your application to disable a specific webhook subscription by it's identifier. Requests made to this endpoint require an authorization header using your authentication token:
curl --request DELETE \
--url https://api.hopdrive.com/v1/webhooks/:id \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <your token>'
Request
DELETE /v1/webhooks/13
Response
200 /v1/webhooks/13
{
{
"id": 13,
"description": "Just cancel events",
"event_types": [
"move.cancel.failed"
"move.cancel.partial"
"move.cancel.pending"
"move.cancel.succeeded"
],
"status": "disabled",
"target_url": "https://webhook.site/27d9d588-1d4b-4150-9f30-42bacd4b1e5f?subscriber=13",
"version": "1.0.0",
"rooftop": 59,
"secret": "new secret2",
"createdat": "2022-08-22T01:39:42.496274+00:00",
"updatedat": "2022-08-22T01:39:42.496274+00:00"
}
}