Error code

Destructive schema change

The change could break entries that exist: removing a field, adding a required one or making one required, or turning off localization, while the type, its subtypes, or the types holding it as a component have entries.

Ø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
DESTRUCTIVE_SCHEMA_CHANGE
Management API
400

What to do

To remove a field, set omitted: true first and remove it later. Otherwise send the change again with confirmDestructive: true.

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": "DESTRUCTIVE_SCHEMA_CHANGE",
  "type": "https://coho-cms.com/errors/destructive-schema-change",
  "title": "Destructive schema change",
  "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.