14
Views
2
Comments
Solved
Delete method url encoded like url/token/{id}
Application Type
Traditional Web, Mobile, Reactive, Service

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! 🙏

2025-02-10 17-24-13
Arun Rajput
Solution

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

2022-07-03 17-24-08
Sourabh sharma

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 😊

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.