unsupported_media_type

HTTP 415 — The request media type is not supported.

Returned as application/problem+json with code unsupported_media_type and HTTP status 415.

The request Content-Type is not supported.

Common causes

  • A request with a body was sent without Content-Type: application/json, or with a different media type.

How to resolve

  • Set Content-Type: application/json on any request that has a body.

Example

1{
2 "type": "https://docs.usglobalmail.com/api/problems/unsupported_media_type",
3 "title": "The request media type is not supported.",
4 "status": 415,
5 "code": "unsupported_media_type",
6 "request_id": "req_8f3c2a1b9d",
7 "instance": "/v1/mails"
8}
Retrying without changing the request will not help — fix the request first.