Calling REST POST API on click of button

I am trying to call Rest POST API on click of a button in my UI screen, but getting some error to set req body for my POST API.

Any step by step tutorial available that I can follow? Pls help.


I am able to add rest post end point and setup structure etc.

Hey Monika,

Can you please explain your steps that you have done to achieve your API call.

It seems you need to send the Request Body (Json) for the Post Call.


I would like to help you if you clearly explain me your process your flow.

Thanks,

Keerthi : ) 

Keerthi Vasan wrote:

Hey Monika,

Can you please explain your steps that you have done to achieve your API call.

It seems you need to send the Request Body (Json) for the Post Call.


I would like to help you if you clearly explain me your process your flow.

Thanks,

Keerthi : ) 


Thanks Keerthi, I can explain you. is it possible for you have a screen sharing session? let me know.

Hi Monika,


I cant connect you now.

But you can do screen-shots following step by step.

I will definitely reply you back


Thanks,

Keerthi  

Hi Monika,

The problem is likely in the way you have defined the REST API's Method. You should make sure it is correctly set up. Can you please post the exact error you are getting?

Monika Gupta wrote:

I am trying to call Rest POST API on click of a button in my UI screen, but getting some error to set req body for my POST API.

Any step by step tutorial available that I can follow? Pls help.


I am able to add rest post end point and setup structure etc.

Consume REST API Session by Outsystem:

https://www.youtube.com/watch?v=DiKHR7Qe1Es