{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autodesk/json-schema/autodesk-business-units-payload-schema.json",
  "title": "BusinessUnitsPayload",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autodesk-business-units-api-openapi.yml#/components/schemas/BusinessUnitsPayload",
  "x-stoplight": {
    "id": "vg238uncrewqq"
  },
  "type": "object",
  "properties": {
    "business_units": {
      "type": "array",
      "x-stoplight": {
        "id": "9dce24721l40s"
      },
      "items": {
        "$ref": "#/$defs/BusinessUnitsObject",
        "x-stoplight": {
          "id": "xmd2c1g2ax76z"
        }
      }
    }
  },
  "$defs": {
    "BusinessUnitsObject": {
      "title": "BusinessUnitsObject",
      "x-stoplight": {
        "id": "ofwz7wxle2i79"
      },
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "x-stoplight": {
            "id": "1t6r79la6n8xx"
          },
          "description": "Business unit ID\n\nIf specified and already existing, the existing business unit will be replaced\nwith the provided attributes.\n\nIf specified and not already existing, a new business unit will be created with the id.\n\nIf unspecified, a new business unit will be created with a server-generated id."
        },
        "parent_id": {
          "type": "string",
          "x-stoplight": {
            "id": "vaqvh4gbvaq4i"
          },
          "description": "The ID of the parent business unit\n\nNote that an entire business unit hierarchy can be created by manually specifying the id\nattribute for each business unit and using it as appropriate in other parent_id\nattributes."
        },
        "name": {
          "type": "string",
          "x-stoplight": {
            "id": "vp8m48lup86mn"
          },
          "description": "The name of the business unit"
        },
        "description": {
          "type": "string",
          "x-stoplight": {
            "id": "gjwcknccphtzc"
          },
          "description": "The description of the business unit"
        }
      },
      "required": [
        "name"
      ]
    }
  }
}