{
  "topic": "errors.INVALID_UNIQUE_KEY_DEFINITION",
  "path": [
    "errors",
    "INVALID_UNIQUE_KEY_DEFINITION"
  ],
  "title": "INVALID_UNIQUE_KEY_DEFINITION — unique key definition is structurally invalid",
  "synopsis": "Each unique key on a model must have a non-empty list of field paths, a unique name within the model, and field paths that resolve to existing, non-ambiguous fields in the model schema. This error is returned when a submitted model definition violates one of these structural requirements.",
  "body": "# errors.INVALID_UNIQUE_KEY_DEFINITION\n\n## NAME\n\nINVALID_UNIQUE_KEY_DEFINITION — a model's unique key definition is structurally invalid and cannot be used.\n\n## SYNOPSIS\n\nHTTP: `422` `Unprocessable Entity`. Retryable: `no`.\n\n## DESCRIPTION\n\nEach unique key on a model must have a non-empty list of field paths, a unique name within the model, and field paths that resolve to existing, non-ambiguous fields in the model schema. This error is returned when a submitted model definition violates one of these structural requirements.\n\nTo resolve: correct the unique key definition — ensure every key has a name, at least one field path, no duplicate key names within the model, and that all referenced field paths exist in the model schema.\n\n## SEE ALSO\n\n- errors\n- errors.INVALID_UNIQUE_KEY\n- errors.COMPOSITE_KEY_UNSUPPORTED\n",
  "sections": [
    {
      "name": "NAME",
      "body": "INVALID_UNIQUE_KEY_DEFINITION — a model's unique key definition is structurally invalid and cannot be used."
    },
    {
      "name": "SYNOPSIS",
      "body": "HTTP: `422` `Unprocessable Entity`. Retryable: `no`."
    },
    {
      "name": "DESCRIPTION",
      "body": "Each unique key on a model must have a non-empty list of field paths, a unique name within the model, and field paths that resolve to existing, non-ambiguous fields in the model schema. This error is returned when a submitted model definition violates one of these structural requirements.\n\nTo resolve: correct the unique key definition — ensure every key has a name, at least one field path, no duplicate key names within the model, and that all referenced field paths exist in the model schema."
    },
    {
      "name": "SEE ALSO",
      "body": "- errors\n- errors.INVALID_UNIQUE_KEY\n- errors.COMPOSITE_KEY_UNSUPPORTED"
    }
  ],
  "see_also": [
    "errors",
    "errors.INVALID_UNIQUE_KEY",
    "errors.COMPOSITE_KEY_UNSUPPORTED"
  ],
  "stability": "stable",
  "actions": []
}
