unsupported_media_type (415)
unsupported_media_type
HTTP status: 415
Retryable: No — retrying without changes will fail the same way.
The request `Content-Type` is not accepted for this endpoint.
When it fires
The endpoint expects `application/json` but received another content type, or vice versa for upload endpoints.
How to handle it
Set `Content-Type: application/json` for JSON endpoints. The reference page for each route lists the accepted media types.
Example response
{
"error": {
"type": "https://docs-dev.autohost-dev.uk/api/errors/unsupported_media_type",
"code": "unsupported_media_type",
"message": "Expected Content-Type: application/json",
"request_id": "req_01HEXAMPLE0000000000000000",
"doc_url": "https://docs-dev.autohost-dev.uk/api/errors/unsupported_media_type"
}
}