Outbount Rest POST HTTP method getting failed - Wrong Input Parameter

Ram108
Kilo Expert

Ram108_0-1695729292762.png

Ram108_1-1695729354867.png

 

Hi, Here I created a HTTP Method. Sending a content like this. But I'm getting following error. Please advice if I'm missing anything.

 

Ram108_2-1695729463255.png

 

1 ACCEPTED SOLUTION

It is working now

 

We have to pass the content like this. not in a json format

 

text='Hi, Have a nice day'

View solution in original post

3 REPLIES 3

palanikumar
Giga Sage

There is no issue at the request. Contact the owner of the API and check whether this api expects additional parameters. If possible try the same in POSTMAN, once it is working you can configure the same in ServiceNow

Thank you,
Palani

Thanks for your response.

I tried it in Postman with the same parameters and it is working fine. Looks like the syntax of the content I'm passing is incorrect for content type: application/x-www-form-urlencoded.

The only accepts the content type as urlencoded and not a JSON.

It is working now

 

We have to pass the content like this. not in a json format

 

text='Hi, Have a nice day'