{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autodesk/json-schema/autodesk-object-tree-schema.json",
  "title": "ObjectTree",
  "description": "Represents the successful response of a Fetch Object Tree operation.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autodesk-aps-model-derivative-openapi.yml#/components/schemas/ObjectTree",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "description": "Envelope that contains the returned data.",
      "required": [
        "type",
        "objects"
      ],
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of data that is returned. Always ``objects``.",
          "minLength": 1
        },
        "objects": {
          "type": "array",
          "description": "Collection of \"objects\" that constitute the nodes of the object tree.",
          "uniqueItems": true,
          "minItems": 1,
          "items": {
            "type": "object",
            "properties": {
              "objectid": {
                "type": "number",
                "description": "A non-persistent ID that is assigned to an object at translation time."
              },
              "name": {
                "type": "string",
                "description": "Name of the object.",
                "minLength": 1
              },
              "objects": {
                "type": "array",
                "description": "An optional array of objects of type ``object`` where each object represents a child of the current node on the object tree.",
                "uniqueItems": true,
                "minItems": 1,
                "items": {
                  "type": "object",
                  "required": [
                    "objectid",
                    "name"
                  ]
                }
              }
            },
            "required": [
              "objectid",
              "name"
            ]
          }
        }
      }
    }
  }
}