{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnm-io/json-schema/arcnm-io-part-revision-dataset-update-schema.json",
  "title": "PartRevisionDatasetUpdate",
  "description": "PATCH body for editing a dataset link.\n\nAll fields optional — the route applies whichever the caller sends.\nSetting ``is_primary=True`` is exclusive within the parent revision:\nthe route demotes any other primary on the same revision so the\n\"exactly one primary\" invariant holds without race-prone client\ncoordination.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arcnm-io-datasets-api-openapi.yml#/components/schemas/PartRevisionDatasetUpdate",
  "properties": {
    "filename": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Filename",
      "description": "New original filename for the uploaded file."
    },
    "is_primary": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Is Primary",
      "description": "Set true to make this the primary CAD file for analysis on the revision."
    }
  },
  "additionalProperties": false,
  "type": "object"
}