tRestClient: how to set body in POST request

Five Stars

tRestClient: how to set body in POST request

How do I set body request in tRestClient similar to what I can do in tRest? I can't edit "Input Schema". It just says "body" is type Document but it's read only. If I switch it back and forth to Repository, it becomes empty but still Read Only.


Accepted Solutions
Seven Stars

Re: tRestClient: how to set body in POST request

Hi dnaboka,

In case of get you can set it in query parameters but for post request  you have to pass the body (type -> document) as an input row to the tRestClient component.

 

 

Best Regards,

Abhishek


All Replies
Five Stars

Re: tRestClient: how to set body in POST request

It's quite straightforward in tRest and a basic feature of any web services client. What am I missing here?

Seven Stars

Re: tRestClient: how to set body in POST request

Hi dnaboka,

In case of get you can set it in query parameters but for post request  you have to pass the body (type -> document) as an input row to the tRestClient component.

 

 

Best Regards,

Abhishek

Four Stars

Re: tRestClient: how to set body in POST request

Hi Abhishek,

 

I am facing the same problem, I need to send a body in a POST request.

 

I have passed the body as document type in the input row to tRestClient component, but it didn't do anything. Please have a look the attached screenshots.

 

The screenshot you provided does not even have a tRestClient component.

 

Please Help!

 

trestclient_advanced.png
trestclient_basic.png