Pass service (REST API ) body as json with the context.xyz as applicatio/json

Hi,
I am trying to pass the body of the API as {{context.send_money.rateapibody}} where my data is { “name”:“value”, “email”:“value” } in context than in service i am using body as raw context-type application json
image

Hi @tabish13khan, please select the data being sent as custom instead of application/json at the service node.

Below is an example to show that JSON data can be sent in the body which is stored in a context variable.

Here in this example, we are storing the JSON into context variable “abc” and then sending the same to the service endpoint by selecting the body type as “custom”.

image

image

Below is the snip of HTTP request inspector showing the data sent to the endpoint when the service node is executed.

image

image

1 Like

Thanks you it worked well