HTTP Request value passing through Parameters

How to pass the value in HTTP Request instead of using body , we need to pass the value through Parameter in"post" Method…?

Hi @Anikalai

Welcome to our UiPath Forum! :slight_smile:

You can use the Parameters parameter of the HTTP Request activity:
image

It is quite straightforward:
image

hi @loginerror,

How to pass variables in it it is not working for me

You should simply replace the "yourString" with your String variable.

Some examples of the errors you are getting could help us dive deeper into your issue :slight_smile:

Hi @loginerror,

As you mentioned here by am sharing the error which am facing, Please find the details in the image

{
“timestamp”: “2020-08-18T13:31:13.444+05:30”,
“status”: 415,
“error”: “Unsupported Media Type”,
“message”: “Content type ‘application/x-www-form-urlencoded;charset=UTF-8’ not supported”,
“path”: “/xxxxx/xxx/xxx/xxxxxx”
}

parameter_error_message parameters

Could you also show how your HTTP Request is configured in both Studio and a working example using some other tool (i.e. Postman)?

This would help a lot.

Hi @loginerror ,

Please find the details that u have asked.

1 Like

Could you try passing the JSON in the Body field of the HTTP Request activity?
image

It accepts input as string, so you will have to escape all double quotes, like so:

"{""key"":""value""}"

There are other ways to pass this JSON input to this field, such as:

  1. Load it from a text file as is (no need to escape quotes) using the Read Text File activity
  2. Create it from scratch, more on that here.
1 Like