Discussions
☠️ DeleteWebhook endpoint not working
I'm trying to hit the DELETE /webhook_subscriptions
endpoint and it's just not working at all.
No matter what I try (OAuth 2.0 or API Key auth, different variations of event
and object
params), I keep getting the same error:
{
"errorMessage": "Bad request - please check your parameters",
"errorDescription": "Must specify an object or event name for deletion",
"errorDetails": {
"rawErrorMessage": [
"400 - "{\"success\":false,\"message\":\"Must specify an object or event name for deletion\"}""
],
"httpCode": "400"
}
}
This is critical because during testing I now have multiple webhook subscriptions pointing to the same callback URL, and I need to delete them. Subscribing works fine — but deletion seems broken.
My Request
curl --request DELETE
--url https://api.servicem8.com/webhook_subscriptions
--header 'accept: application/json'
--header 'content-type: application/x-www-form-urlencoded'
--data event=job.status_changed
Expected
{
"success": true
}
Actual
{
"success": false,
"message": "Must specify an object or event name for deletion"
}
Notes
- I’ve tried passing
object=job
as well asevent=job.status_changed
. - Using
application/x-www-form-urlencoded
. - Docs say either
object
orevent
should be accepted. - Subscriptions can be created, so the system clearly recognises the event names.
- Deletion consistently fails with the above 400.