{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/arcnm-io/json-schema/arcnm-io-part-update-schema.json",
  "title": "PartUpdate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/arcnm-io-parts-api-openapi.yml#/components/schemas/PartUpdate",
  "properties": {
    "description": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Description",
      "description": "Human-readable description of the part."
    },
    "base_uom": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Base Uom",
      "description": "Base unit of measure for the part (ISO unit code, e.g. EA, KG, M)."
    },
    "make_or_buy": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Make Or Buy",
      "description": "Whether the part is manufactured in-house ('make') or a catalogue part ('buy'). A component of an assembly stays 'make': set its sourcing in the assembly's parts list (409 otherwise)."
    },
    "purchase_price": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 10000000.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Purchase Price",
      "description": "Purchase price per piece for a catalogue part, in the part's default currency. Not set on a component of an assembly (409)."
    },
    "procurement_type": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Procurement Type",
      "description": "How the part is sourced (e.g. in-house production or external supplier)."
    },
    "lead_time_days": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Lead Time Days",
      "description": "Expected lead time to obtain the part, in days."
    },
    "default_currency": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Default Currency",
      "description": "Default currency for the part's pricing (ISO 4217 code, e.g. EUR, USD)."
    },
    "classification_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Classification Id",
      "description": "ID of the classification category this part belongs to, if any."
    },
    "folder_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Folder Id",
      "description": "ID of the workspace folder this part is filed in; null is unfiled."
    },
    "attributes": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Attributes",
      "description": "Free-form key/value metadata for the part."
    }
  },
  "additionalProperties": false,
  "type": "object"
}