{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/atlassian/json-schema/atlassian-copy-page-hierarchy-request-schema.json",
  "title": "CopyPageHierarchyRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/atlassian-content-children-and-descendants-api-openapi.yml#/components/schemas/CopyPageHierarchyRequest",
  "required": [
    "destinationPageId"
  ],
  "type": "object",
  "properties": {
    "copyAttachments": {
      "type": "boolean",
      "description": "If set to `true`, attachments are copied to the destination page.",
      "default": false
    },
    "copyPermissions": {
      "type": "boolean",
      "description": "If set to `true`, page permissions are copied to the destination page.",
      "default": false
    },
    "copyProperties": {
      "type": "boolean",
      "description": "If set to `true`, content properties are copied to the destination page.",
      "default": false
    },
    "copyLabels": {
      "type": "boolean",
      "description": "If set to `true`, labels are copied to the destination page.",
      "default": false
    },
    "copyCustomContents": {
      "type": "boolean",
      "description": "If set to `true`, custom contents are copied to the destination page.",
      "default": false
    },
    "copyDescendants": {
      "type": "boolean",
      "description": "If set to `true`, descendants are copied to the destination page.",
      "default": true
    },
    "destinationPageId": {
      "$ref": "#/$defs/ContentId"
    },
    "titleOptions": {
      "$ref": "#/$defs/CopyPageHierarchyTitleOptions"
    }
  },
  "$defs": {
    "ContentId": {
      "type": "string"
    },
    "CopyPageHierarchyTitleOptions": {
      "type": "object",
      "properties": {
        "prefix": {
          "type": "string"
        },
        "replace": {
          "type": "string"
        },
        "search": {
          "type": "string"
        }
      },
      "description": "Required for copying page in the same space."
    }
  }
}