{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autodesk/json-schema/autodesk-folder-payload-schema.json",
  "title": "FolderPayload",
  "description": "Describe the folder to be created.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autodesk-aps-data-management-openapi.yml#/components/schemas/FolderPayload",
  "type": "object",
  "properties": {
    "jsonapi": {
      "$ref": "#/$defs/JsonApiVersion"
    },
    "data": {
      "type": "object",
      "description": "The data that describes the folder to be created.",
      "required": [
        "type",
        "attributes",
        "relationships"
      ],
      "properties": {
        "type": {
          "$ref": "#/$defs/TypeFolder"
        },
        "attributes": {
          "type": "object",
          "description": "The properties of the folder to be created.",
          "required": [
            "name",
            "extension"
          ],
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "description": "The name of the new folder (1-255 characters).\n\nAvoid using the following reserved characters in the name: ``<``, ``>``, ``:``, ``\"``, ``/``, ``\\``, ``|``, ``?``, ``*``, `, ``\\n``, ``\\r``, ``\\t``, ``\\0``, ``\\f``, ``¢``, ``™``, ``$``, ``®``.\n\nIf you assign the name of a deleted folder to this folder, and later you decide to restore the deleted folder, you will have to rename the deleted folder.\n"
            },
            "extension": {
              "type": "object",
              "description": "A container of additional properties that extends the default properties of this resource.",
              "required": [
                "type",
                "version"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The type of the extension.\n\nFor BIM 360 Docs folders, use ``folders:autodesk.bim360:Folder``.\n\nFor all other services, use ``folders:autodesk.core:Folder``."
                },
                "version": {
                  "type": "string",
                  "minLength": 1,
                  "description": "The version of the type. The current version is ``1.0``."
                },
                "data": {
                  "type": "object",
                  "description": "The container of additional properties.\n\nThe additional properties must follow the schema specified by ``type`` and ``version``. Properties that don't follow the schema will be ignored."
                }
              }
            }
          }
        },
        "relationships": {
          "type": "object",
          "description": "A container of links to resources that are related to the folder to be created.",
          "required": [
            "parent"
          ],
          "properties": {
            "parent": {
              "type": "object",
              "description": "Information about the parent of the new folder in the folder hierarchy.",
              "required": [
                "data"
              ],
              "properties": {
                "data": {
                  "type": "object",
                  "description": "The data about the parent of the folder to be created.",
                  "required": [
                    "type",
                    "id"
                  ],
                  "properties": {
                    "type": {
                      "$ref": "#/$defs/TypeFolder"
                    },
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "description": "The URN of the parent folder. For information on how to find the URN, see the initial steps of the [Download a File](/en/docs/data/v2/tutorials/download-file/) tutorial.\n\nNote that for BIM 360 Docs, new folders must be created within an existing folder (e.g., the Plans or Project Files folders), \nand not directly within the root folder. Permissions, visibility (e.g., ``items:autodesk.bim360:Document`` or ``items:autodesk.bim360:File``), \nand actions (e.g., OCR) are inherited from the existing parent folder. New folders also inherit subscriptions such as the \nnotifications sent when files are added to a folder.\n"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "required": [
    "jsonapi",
    "data"
  ],
  "$defs": {
    "JsonApiVersion": {
      "title": "json_api_version",
      "type": "object",
      "description": "The JSON API object.",
      "properties": {
        "version": {
          "$ref": "#/$defs/JsonApiVersionValue"
        }
      },
      "required": [
        "version"
      ]
    },
    "JsonApiVersionValue": {
      "description": "The version of JSON API. Will always be ``1.0``.",
      "type": "string",
      "enum": [
        "1.0"
      ]
    },
    "TypeFolder": {
      "type": "string",
      "enum": [
        "folders"
      ],
      "description": "The type of the resource. Possible values are ``folders``."
    }
  }
}