Hi Community,
I am trying to consume a DELETE REST API in OutSystems where the URL format is:
https://example.com/{token}/{id}
The parameters are passed directly in the URL itself, but when I try to configure it in OutSystems REST consumption, it is asking me to provide a JSON request body.
Since this is a DELETE request with URL parameters only (no body required), how should I handle this correctly in OutSystems?
Any guidance or example would be really helpful.
Thanks in advance! 🙏
Hi @Sourabh sharma ,
Please try to pass token in header of API, maybe it will work. Most of the APIs received token in header instead of URL itself. Please refer below snapshot for sample.
Thanks,Arun
Hi @Arun Rajput ,
Thank you so much for your suggestion and the snapshot! 🙏
I tried passing the token in the header as you suggested, and it worked perfectly! ✅
Really appreciate your help and guidance!
Thanks & Regards 😊