Has anyone used the REST "DELETE' method for outbound REST Messaging?

rickymanuel
Tera Contributor

The field 'Content' was not visible on the form but I updated the UI Policy to show the content so i can use the JSON body.  However, when I tried to test my DELETE method and hardcoding the values on my JSON body I get an error:  

 {"errors":{"":["A non-empty request body is required."]},"title":"One or more validation errors occurred.","status":400,"traceId":"|f7ba0e33b142d84a91d2e7f57a7cafb5.40b1f8fb_"}.   

 

If I run my DELETE in Postman it works.

16 REPLIES 16

ServiceNow responded that DELETE does not allow the ability to pass data in the request body.  You can call the DELETE method. You can pass on the URL path.

Luckily for us, my alternative was to call a stored procedure using Orchestration.

phoenix516
Tera Contributor

I tried using this option also and had no success. I have submitted an enhancement request for this here. Please up-vote.