Delete a Webhook
This endpoint allows you to delete a Webhook.
Authorizations
Path parameters
webhookIdstring · uuidRequired
Responses
204
Returns an empty body
application/json
Responseobject
401
Unauthorized
application/json
403
Forbidden
application/json
404
Not Found
application/json
delete
/v2/webhooks/:webhookIdDELETE /v2/webhooks/:webhookId HTTP/1.1
Host: api.underdogprotocol.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{}Example
curl --location --request DELETE 'https://dev.underdogprotocol.com/v2/webhooks/:webhookId' \
--header 'Authorization: Bearer {token}'const axios = require('axios');
let config = {
method: 'delete',
maxBodyLength: Infinity,
url: 'https://dev.underdogprotocol.com/v2/webhooks/:webhookId',
headers: {
'Authorization': 'Bearer {token}'
}
};
axios(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});
Last updated