- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 04:58 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 08:33 AM
It is working now
We have to pass the content like this. not in a json format
text='Hi, Have a nice day'

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 05:02 AM
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
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 06:49 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2023 08:33 AM
It is working now
We have to pass the content like this. not in a json format
text='Hi, Have a nice day'