init.Tasks openapi.json inittasks.com

HTTP 415

unsupported_media_type

HTTP 415 — Unsupported media type

When you see it

The request has no Content-Type: application/json.

What to do

Set the header. The API speaks JSON only; there is no form or multipart endpoint in v1.

The response

Every error is RFC 9457 problem+json:

json
{
  "type": "https://devs.inittasks.com/errors/unsupported_media_type",
  "title": "Unsupported media type",
  "status": 415,
  "detail": "a sentence for a developer; never branch on it",
  "instance": "/todos/8E4F2A1B",
  "request_id": "3f9a1c7e-2b44-4d1e-9c30-5a7e8b2d1f60"
}

Branch on type, never on detail or on the HTTP status alone — several codes share a status.