{
  "topic": "errors.MODEL_HAS_ENTITIES",
  "path": [
    "errors",
    "MODEL_HAS_ENTITIES"
  ],
  "title": "MODEL_HAS_ENTITIES — operation blocked because entities of this model exist",
  "synopsis": "Both `POST /model/{name}/{version}/unlock` and `DELETE /model/{name}/{version}` require zero entities of the target model. The cardinality check guards against silent loss of data and against schema drift on a model whose lifecycle is presumed frozen.",
  "body": "# errors.MODEL_HAS_ENTITIES\n\n## NAME\n\nMODEL_HAS_ENTITIES — an unlock or delete request was rejected because at least one entity of the target model still exists.\n\n## SYNOPSIS\n\nHTTP: `409` `Conflict`. Retryable: `no`.\n\n## DESCRIPTION\n\nBoth `POST /model/{name}/{version}/unlock` and `DELETE /model/{name}/{version}` require zero entities of the target model. The cardinality check guards against silent loss of data and against schema drift on a model whose lifecycle is presumed frozen.\n\nThe `entityCount` property in the problem-detail body reports how many entities currently exist for the model on the responding tenant.\n\nNot retryable in the protocol sense. The caller must remove the offending entities (e.g. via condition-delete on the entity surface) and re-issue the lifecycle request.\n\n## SEE ALSO\n\n- errors\n- errors.MODEL_ALREADY_LOCKED\n- errors.MODEL_ALREADY_UNLOCKED\n- errors.CONFLICT\n",
  "sections": [
    {
      "name": "NAME",
      "body": "MODEL_HAS_ENTITIES — an unlock or delete request was rejected because at least one entity of the target model still exists."
    },
    {
      "name": "SYNOPSIS",
      "body": "HTTP: `409` `Conflict`. Retryable: `no`."
    },
    {
      "name": "DESCRIPTION",
      "body": "Both `POST /model/{name}/{version}/unlock` and `DELETE /model/{name}/{version}` require zero entities of the target model. The cardinality check guards against silent loss of data and against schema drift on a model whose lifecycle is presumed frozen.\n\nThe `entityCount` property in the problem-detail body reports how many entities currently exist for the model on the responding tenant.\n\nNot retryable in the protocol sense. The caller must remove the offending entities (e.g. via condition-delete on the entity surface) and re-issue the lifecycle request."
    },
    {
      "name": "SEE ALSO",
      "body": "- errors\n- errors.MODEL_ALREADY_LOCKED\n- errors.MODEL_ALREADY_UNLOCKED\n- errors.CONFLICT"
    }
  ],
  "see_also": [
    "errors",
    "errors.MODEL_ALREADY_LOCKED",
    "errors.MODEL_ALREADY_UNLOCKED",
    "errors.CONFLICT"
  ],
  "stability": "stable",
  "actions": []
}
