Rest APIs : REST API : Getting started : REST headers : Understanding the Content-Type header
Understanding the Content-Type header
The Content-Type header describes the format the body of your request is being sent as. For example, the body of your requests can be sent as JSON or XML, but you need to declare in the Content-Type header which one is being used. This header is required in all requests.
A request is any query made by your application to . expects one of these values as the Content-Type header:
To send JSON in a request, use application/json.
To send XML in a request, use application/xml.
To set how the format that your application receives from in a response, see Understanding the Accept header.