How to upload payloads in http request

I have below payload how to upload this in http request activity.
{
“Name”: “xyz”,
“Date”: “2025-05-13”,
“Time”: “08:49:47”,
“recipient”: ,
“products”: [
{
“productCode”: “123”,
“quantity”: 1,

    }
],

}

@balanirmalkumar.s,

Install UiPath.WebAPI.Activities
Serialize this string as JSON
Pass the json string to payload

I am getting response as 204

@balanirmalkumar.s,

The HTTP 204 status code, also known as “No Content,” indicates that a request has been successfully processed, but the server doesn’t need to return any content in the response body. This means the request was successful, but there’s no new data or information to be sent back to the client.

I am getting this message
{"status":"Fail","responsecode":204,"timestamp":174723030552,"errormessage":"Unble to Perform Operation","response":""}"

Data not included inthe DB

@balanirmalkumar.s

can you show some screenshots of what you have done…also first try with postman and then copy the curl and import into UiPath to auto configure

cheers

How to import to UiPath to auto configure

I am passing data to api in below format.

"{
““Name””: ““xyz””,
““Date””: "“2025-05-13"”,
““Time””: "“08:49:47"”,
““recipient””: ,
““products””: [
{
““productCode””: "“123"”,
““quantity””: 1,

}

],
}"

I tried with serialization. It is not working

@balanirmalkumar.s

can you show aa screenshot please of the acitvity

once you configure in postman ..it would be showing you a curl which can be imported using import in http request activity

does the same payload work in postman?

cheers

Yes. Same payload working in postman.In UiPath it is not working

@balanirmalkumar.s

but one you rpovided does not look valid as there are extra commas at end as well

Can you try import as well..that will import all other parameters easily

cheers

This is payload i took it from postman
{
“Name”: “xyz”,
“Date”: “2025-05-13”,
“Time”: “08:49:47”,
“recipient”: ,
“products”: [
{
“productCode”: “123”,
“quantity”: 1,
}
],
}

How to import this to UiPath.
Can you provide steps,links or documents for reference

@balanirmalkumar.s

get curl from postman

paste in import

cheers

Hi @balanirmalkumar.s

You can use it in below way directly under your body of http request:

“{\“Name\”: \”+xyz+\“, \“Date\”: \”+2025-05-13+\“, \“Time\”: \”+08:49:47+\“, \“recipient\”: , \“products\”: [{ \“productCode\”: \”+123+\“, \“quantity\”: 1,}],}”

Regards
Sonali