Getting 415 Error code while using HTTP request and passing body as input

Hi folks,

i got stuck while using HTTP request and i am passing input as body but i dint got any solution for that
i need to pass following formate
“additionalInfo1”: “string”,
“additionalInfo2”: “string”,
“idType”: “string”,
“ids”: “string”,
“message”: “string”

In body i am passing like this

“{”“additionalInfo1"”: “”"","“additionalInfo2"”: “”"","“idType”": “”"","“ids”": ““00000000"”,”“message”": “”""}"

i put body format as json and i have tried with parameters too. please help me on this


Hi @venkateshgorantla
Check this

Ashwin S

Hi @AshwinS2 i have gone through that before i posted but it is not working in my case


Replace all the double quotes in the body with single quotes and send it as a string to the request. Then check if it works :slight_smile:

I am having error

“timestamp”: 1571229582893,
“status”: 415,
“error”: “Unsupported Media Type”,
“exception”: “org.springframework.web.HttpMediaTypeNotSupportedException”,
“message”: “Content type ‘application/x-www-form-urlencoded’ not supported”,
“path”: “/v1/xxxxx/infobip/sms”

The request body is
“to”: “263772xxxxx”,
“text”:“Testing SMS n its a beautiful day Enjoy RPA”