Error code

The document does not match its content type

The entry's fields do not match its content type. The `errors` list gives each field and what is wrong with it.

Ø100 · 20 teethfree one way, locked the otherABC
Fig. 03 Ratchet and pawlThe wheel turns freely one way, and the pawl stops it turning back.
Code
VALIDATION_FAILED
Management API
400

What to do

Correct the fields the errors list names. The project's generated types catch most of these before you send.

The response

Every refusal is an application/problem+json document. Its detail says what went wrong in that request; its type is this page.

{
  "code": "VALIDATION_FAILED",
  "type": "https://coho-cms.com/errors/validation-failed",
  "title": "The document does not match its content type",
  "status": 400,
  "detail": "What went wrong in this request, in a sentence.",
  "instance": "/v1/projects/…"
}

Every code

The error codes, in a table with a filter.