You need to specify the data format in the request header.
The request and response bodies can have the following data formats:
application/json
application/xml
application/x-msgpack
You need to specify the data format in the request header, as illustrated in the sample below.
Content-Type: application/json
Accept: application/json
Parameter | Description | Required? | Default |
---|---|---|---|
Content-Type | The data format of the request you send to the API. | Yes | N/A |
Accept | The data format of the response returned by the API. | No | application/json |