Error Reference
unsupported-media-type
| Field | Value |
|---|---|
| Type URI | https://docs.kordiam.app/docs/errors/unsupported-media-type |
| HTTP Status | 415 Unsupported Media Type |
Description
The Content-Type header in the request specifies a media type that the endpoint does not support. Most JSON endpoints require application/json; endpoint-specific media types are listed in the API reference.
Response Example
Code
Common Causes
- Missing the
Content-Typeheader on a request that includes a body - Using
Content-Type: text/plaininstead ofapplication/json - Using a media type that is not documented for the endpoint
How to Fix
Set the Content-Type header to the media type documented for the endpoint. For JSON endpoints:
Code
Last modified on