Script REST API - Accepting HEAD Requests

Aidan
Tera Guru

In my attempts to integrate with a third party application, I need to set up a scripted REST API to handle a webhook.  I've got no problems implementing the scripted REST API's, my issue is when registering the webhook URL with the third party service they send a HEAD method request before allowing the webhook to be created.  Scripted REST API's in ServiceNow only allow GET, POST, PUSH, PATCH and DELETE. 

I've tried adding a new choice to the HTTP method but this still returns a 405 error (Method not allowed).

Interestingly, the response body is also empty.  If I test the Scripted REST API with a GET method (which is not implemented) I get a body with the not implemented error in it.  So ServiceNow appears to be completely ignoring HEAD requests.

1 ACCEPTED SOLUTION
5 REPLIES 5

Thanks for the update.

if you think there is any response that helps you please mark that helpful & correct so that this thread can be closed.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader