unsupported_media_type
This endpoint does not accept the Content-Type.
| HTTP status | 415 |
code | unsupported_media_type |
| Retry? | No, fix the request first |
What it means
Section titled “What it means”JSON endpoints expect Content-Type: application/json. Image uploads expect image/png, image/jpeg, image/webp or application/octet-stream.
How to fix it
Section titled “How to fix it”Set the matching header. With curl: -H "Content-Type: application/json" for JSON.
Example
Section titled “Example”{ "type": "https://docs.kalender-sync.de/en/api/errors/unsupported_media_type", "title": "Unsupported media type", "status": 415, "code": "unsupported_media_type", "request_id": "req_…"}