In the Advanced REST Client step pass JSON in the Request Body

Hi! All

In the Advanced REST Client step, I want to pass the Request Body as JSON. Please suggest how I can achieve it?

1 Like

Hi!

In the Advanced REST Client Request Body select JSON (application/json) from the drop-down list. You can directly type the JSON body or specify fields and environment variables/parameters in appropriate placeholders (?{fieldname}, ${environment variable}).

In the following example I have defined the JSON body in the Modified Java Script step.

Following is the snapshot of the Modified Java Script step. I have defined a variable for JSONBody and passed it as a field in the workflow stream.

Following is the snapshot of the Advanced REST Client step. You can directly specify fields or variables in the formats: ?{fieldname}, ${environment variable}) or you can double click on a field the left navigation pane to drop it on the right pane.

1 Like