How to use 'application/x-www-form-urlencoded' content-type "request format" for OOB REST APIs?

LearnerSubho
Mega Guru
Hello Everyone,
 
ServiceNow offers 3 type of Request/Response formats for OOB REST APIs: application/json, application/xml, text/xml.
 
Without configuring any Scripted REST API, can we use 'application/x-www-form-urlencoded' content-type for "request format" by adding header Or through any other way in REST API Explorer for OOB APIs?
 
Thank you.
1 ACCEPTED SOLUTION

Hi,

I don't think OOB table API will support that content type

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

the inbound request formats supported are only these 3

application/json,application/xml,text/xml

what is your exact requirement?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar 

Thanks for the response.

Wanted to check the feasibility of processing a request with 'application/x-www-form-urlencoded' content-type for any OOB Table API.

It can be done easily in Scripted REST API by selecting the 'Override default supported request formats' option and appending/changing the list of supported request formats.

Many Thanks.

Hi,

I don't think OOB table API will support that content type

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

We explored a lot and found no way to implement the requirement other than configuring a scripted API.