{
  "openapi": "3.0.0",
  "info": {
    "description": "This document describes the REST API and resources provided by Confluence. The REST APIs are for developers who want to integrate Confluence into their application and for administrators who want to script interactions with the Confluence server.Confluence's REST APIs provide access to resources (data entities) via URI paths. To use a REST API, your application will make an HTTP request and parse the response. The response format is JSON. Your methods will be the standard HTTP methods like GET, PUT, POST and DELETE. Because the REST API is based on open standards, you can use any web development language to access the API.",
    "version": "1.0.0",
    "title": "The Confluence Cloud REST API",
    "termsOfService": "http://atlassian.com/terms/"
  },
  "paths": {
    "/audit": {
      "get": {
        "tags": [
          "/audit"
        ],
        "summary": "Get audit records",
        "description": "Returns all records in the audit log, optionally for a certain date range.\nThis contains information about events like space exports, group membership\nchanges, app installations, etc. For more information, see\n[Audit log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html)\nin the Confluence administrator's guide.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.AuditResource.getAuditRecords_get",
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "description": "Filters the results to the records on or after the `startDate`.\nThe `startDate` must be specified as a [timestamp](https://www.unixtimestamp.com/).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "description": "Filters the results to the records on or before the `endDate`.\nThe `endDate` must be specified as a [timestamp](https://www.unixtimestamp.com/).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchString",
            "in": "query",
            "description": "Filters the results to records that have string property values\nmatching the `searchString`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned records.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of records to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested records are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditRecordArray"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to view the audit\nlog."
          }
        },
        "x-atlassian-connect-scope": "INACCESSIBLE"
      },
      "post": {
        "tags": [
          "/audit"
        ],
        "summary": "Create audit record",
        "description": "Creates a record in the audit log.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.AuditResource.createAuditRecord_post",
        "responses": {
          "200": {
            "description": "Returned if the record is created in the audit log.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditRecord"
                }
              }
            }
          },
          "400": {
            "description": "Returned if the `remoteAddress` property is not specified."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AuditRecordCreate"
              }
            }
          },
          "description": "The record to be created in the audit log.",
          "required": true
        },
        "x-atlassian-connect-scope": "INACCESSIBLE"
      }
    },
    "/audit/export": {
      "get": {
        "tags": [
          "/audit"
        ],
        "summary": "Export audit records",
        "description": "Exports audit records as a CSV file or ZIP file.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.AuditResource.exportAuditRecords_get",
        "parameters": [
          {
            "name": "startDate",
            "in": "query",
            "description": "Filters the exported results to the records on or after the `startDate`.\nThe `startDate` must be specified as a [timestamp](https://www.unixtimestamp.com/).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "endDate",
            "in": "query",
            "description": "Filters the exported results to the records on or before the `endDate`.\nThe `endDate` must be specified as a [timestamp](https://www.unixtimestamp.com/).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "searchString",
            "in": "query",
            "description": "Filters the exported results to records that have string property values\nmatching the `searchString`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "format",
            "in": "query",
            "description": "The format of the export file for the audit records.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "csv",
                "zip"
              ],
              "default": "csv"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested export of the audit records is returned.",
            "content": {
              "application/zip": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to view the audit\nlog."
          }
        },
        "x-atlassian-connect-scope": "INACCESSIBLE"
      }
    },
    "/audit/retention": {
      "get": {
        "tags": [
          "/audit"
        ],
        "summary": "Get retention period",
        "description": "Returns the retention period for records in the audit log. The retention\nperiod is how long an audit record is kept for, from creation date until\nit is deleted.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.AuditResource.getRetentionPeriod_get",
        "responses": {
          "200": {
            "description": "Returned if the requested retention period is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetentionPeriod"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to view the audit\nlog."
          }
        },
        "x-atlassian-connect-scope": "INACCESSIBLE"
      },
      "put": {
        "tags": [
          "/audit"
        ],
        "summary": "Set retention period",
        "description": "Sets the retention period for records in the audit log. The retention period\ncan be set to a maximum of 20 years.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.AuditResource.setRetentionPeriod_put",
        "responses": {
          "200": {
            "description": "Returned if the retention period is updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RetentionPeriod"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to view the audit\nlog."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RetentionPeriod"
              }
            }
          },
          "description": "The updated retention period.",
          "required": true
        },
        "x-atlassian-connect-scope": "INACCESSIBLE"
      }
    },
    "/audit/since": {
      "get": {
        "tags": [
          "/audit"
        ],
        "summary": "Get audit records for time period",
        "description": "Returns records from the audit log, for a time period back from the current\ndate. For example, you can use this method to get the last 3 months of records.\n\nThis contains information about events like space exports, group membership\nchanges, app installations, etc. For more information, see\n[Audit log](https://confluence.atlassian.com/confcloud/audit-log-802164269.html)\nin the Confluence administrator's guide.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.AuditResource.getAuditRecordsForTimePeriod_get",
        "parameters": [
          {
            "name": "number",
            "in": "query",
            "description": "The number of units for the time period.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int64",
              "default": 3
            }
          },
          {
            "name": "units",
            "in": "query",
            "description": "The unit of time that the time period is measured in.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "NANOS",
                "MICROS",
                "MILLIS",
                "SECONDS",
                "MINUTES",
                "HOURS",
                "HALF_DAYS",
                "DAYS",
                "WEEKS",
                "MONTHS",
                "YEARS",
                "DECADES",
                "CENTURIES"
              ],
              "default": "MONTHS"
            }
          },
          {
            "name": "searchString",
            "in": "query",
            "description": "Filters the results to records that have string property values\nmatching the `searchString`.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned records.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of records to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 1000
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested records are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AuditRecordArray"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to view the audit\nlog."
          }
        },
        "x-atlassian-connect-scope": "INACCESSIBLE"
      }
    },
    "/content": {
      "get": {
        "tags": [
          "/content"
        ],
        "summary": "Get content",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns all content in a Confluence instance.\n\nBy default, the following objects are expanded: `space`, `history`, `version`.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).\nOnly content that the user has permission to view will be returned.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentResource.getContent_get",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "description": "The type of content to return.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "page",
                "blogpost"
              ],
              "default": "page"
            }
          },
          {
            "name": "spaceKey",
            "in": "query",
            "description": "The key of the space to be queried for its content.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "title",
            "in": "query",
            "description": "The title of the page to be returned. Required for <code>page</code> type.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Filter the results to a set of content based on their status. If set to `any`,\ncontent with any status is returned. Note, the `historical` status is currently\nnot supported.",
            "required": false,
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "enum": [
                "current",
                "trashed",
                "draft",
                "any"
              ],
              "default": ["current"]
            }
          },
          {
            "name": "postingDay",
            "in": "query",
            "description": "The posting date of the blog post to be returned. Required for\n<code>blogpost</code> type. Format: <code>yyyy-mm-dd</code>.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/contentExpand"
          },
          {
            "name": "trigger",
            "in": "query",
            "description": "If set to `viewed`, the request will trigger a 'viewed' event for the content.\nWhen this event is triggered, the page/blogpost will appear on the 'Recently visited'\ntab of the user's Confluence dashboard.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "viewed"
              ]
            }
          },
          {
            "name": "orderby",
            "in": "query",
            "description": "Orders the content by a particular field. Specify the field and sort direction for\nthis parameter, as follows: 'fieldpath asc/desc'. For example, 'history.createdDate desc'.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned content.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of content objects to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested list of content is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentArray"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "404": {
            "description": "Returned if the calling user does not have permission to view the\nrequested content."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "post": {
        "tags": [
          "/content"
        ],
        "summary": "Create content",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Creates a new piece of content or publishes an existing draft.\n\nTo publish a draft, add the `id` and `status` properties to the body of the request.\nSet the `id` to the ID of the draft and set the `status` to 'current'. When the\nrequest is sent, a new piece of content will be created and the metadata from the\ndraft will be transferred into it.\n\nBy default, the following objects are expanded: `space`, `history`, `version`.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'Add' permission for the\nspace that the content will be created in, and permission to view the draft if publishing a draft.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentResource.createContent_post",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "description": "Filter the returned content by status.",
            "required": false,
            "schema": {
              "type": "string",
              "default": "current"
            }
          },
          {
            "$ref": "#/components/parameters/contentExpand"
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the content is created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Content"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "403": {
            "description": "Returned if;\n\n- The space that the content is being created in does not exist.\n- If the requesting user does not have permission to create content in it."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentCreate"
              }
            }
          },
          "description": "The new content to be created. Set the `representation` to the name of the body\nformat type. For example, if you use `storage` for the body format, set\n'`representation`=`storage`'.\n\nIf you are not sure how to generate the different formats, you can create a page in the\nConfluence application, retrieve the content using [Get content](#api-content-get),\nand expand the desired content format, e.g. `expand=body.storage`.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      }
    },
    "/content/blueprint/instance/{draftId}": {
      "post": {
        "tags": [
          "/content/blueprint"
        ],
        "summary": "Publish legacy draft",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Publishes a legacy draft of a page created from a blueprint. Legacy drafts\nwill eventually be removed in favor of shared drafts. For now, this method\nworks the same as [Publish shared draft](#api-content-blueprint-instance-draftId-put).\n\nBy default, the following objects are expanded: `body.storage`, `history`, `space`, `version`, `ancestors`.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the draft and 'Add' permission for the space that\nthe content will be created in.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentBlueprintResource.publishLegacyDraft_post",
        "parameters": [
          {
            "name": "draftId",
            "in": "path",
            "description": "The ID of the draft page that was created from a blueprint.\nYou can find the `draftId` in the Confluence application by\nopening the draft page and checking the page URL.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "The status of the content to be updated, i.e. the draft. This is set\nto 'draft' by default, so you shouldn't need to specify it.",
            "required": false,
            "schema": {
              "type": "string",
              "default": "draft"
            }
          },
          {
            "$ref": "#/components/parameters/contentExpand"
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the draft was successfully published.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Content"
                }
              }
            }
          },
          "400": {
            "description": "Returned if a title is not specified or a page with the\ntitle already exists."
          },
          "409": {
            "description": "Returned if the version is not set to 1."
          }
        },
        "requestBody": {
          "$ref": "#/components/requestBodies/ContentBlueprintDraft"
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "put": {
        "tags": [
          "/content/blueprint"
        ],
        "summary": "Publish shared draft",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Publishes a shared draft of a page created from a blueprint.\n\nBy default, the following objects are expanded: `body.storage`, `history`, `space`, `version`, `ancestors`.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the draft and 'Add' permission for the space that\nthe content will be created in.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentBlueprintResource.publishSharedDraft_put",
        "parameters": [
          {
            "name": "draftId",
            "in": "path",
            "description": "The ID of the draft page that was created from a blueprint.\nYou can find the `draftId` in the Confluence application by\nopening the draft page and checking the page URL.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "The status of the content to be updated, i.e. the draft. This is set\nto 'draft' by default, so you shouldn't need to specify it.",
            "required": false,
            "schema": {
              "type": "string",
              "default": "draft"
            }
          },
          {
            "$ref": "#/components/parameters/contentExpand"
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the draft was successfully published.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Content"
                }
              }
            }
          },
          "400": {
            "description": "Returned if a title is not specified or a page with the\ntitle already exists."
          },
          "409": {
            "description": "Returned if the version is not set to 1."
          }
        },
        "requestBody": {
          "$ref": "#/components/requestBodies/ContentBlueprintDraft"
        },
        "x-atlassian-connect-scope": "WRITE"
      }
    },
    "/content/search": {
      "get": {
        "tags": [
          "/content"
        ],
        "summary": "Search content by CQL",
        "security": [
          {
            "oAuthDefinitions": [
              "search:confluence"
            ]
          }
        ],
        "description": "Returns the list of content that matches a Confluence Query Language\n(CQL) query. For information on CQL, see:\n[Advanced searching using CQL](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).\nOnly content that the user has permission to view will be returned.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentResource.searchContentByCQL_get",
        "parameters": [
          {
            "name": "cql",
            "in": "query",
            "description": "The CQL string that is used to find the requested content.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cqlcontext",
            "in": "query",
            "description": "The space, content, and content status to execute the search against.\nSpecify this as an object with the following properties:\n\n- `spaceKey` Key of the space to search against. Optional.\n- `contentId` ID of the content to search against. Optional. Must\nbe in the space spacified by `spaceKey`.\n- `contentStatuses` Content statuses to search against. Optional.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/contentExpand"
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned content.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of content objects to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested list of content is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentArray"
                }
              }
            }
          },
          "400": {
            "description": "Returned if the CQL is invalid or missing."
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/content/{id}": {
      "get": {
        "tags": [
          "/content"
        ],
        "summary": "Get content by ID",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns a single piece of content, like a page or a blog post.\n\nBy default, the following objects are expanded: `space`, `history`, `version`.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content. If the content is a blog post, 'View' permission\nfor the space is required.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentResource.getContentById_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be returned. If you don't know the content ID,\nuse [Get content](#api-content-get) and filter the results.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Filter the results to a set of content based on their status.\nIf set to `any`, content with any status is returned. Note, the\n`historical` status is currently not supported.",
            "required": false,
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "enum": [
                "current",
                "trashed",
                "draft",
                "any"
              ],
              "default": ["current"]
            }
          },
          {
            "name": "version",
            "in": "query",
            "description": "The version number of the content to be returned.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "embeddedContentRender",
            "in": "query",
            "description": "The version of embedded content (e.g. attachments) to render.\n\n- <code>current</code> renders the latest version of the embedded content.\n- <code>version-at-save</code> renders the version of the embedded content\nat the time of save.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "current",
                "version-at-save"
              ],
              "default": "current"
            }
          },
          {
            "$ref": "#/components/parameters/contentExpand"
          },
          {
            "name": "trigger",
            "in": "query",
            "description": "If set to `viewed`, the request will trigger a 'viewed' event for the content.\nWhen this event is triggered, the page/blogpost will appear on the 'Recently visited'\ntab of the user's Confluence dashboard.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "viewed"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested content is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Content"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The requesting user does not have permission to view the content."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "put": {
        "tags": [
          "/content"
        ],
        "summary": "Update content",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Updates a piece of content. Use this method to update the title or body\nof a piece of content, change the status, change the parent page, and more.\n\nNote, updating draft content is currently not supported.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentResource.updateContent_put",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be updated.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "The updated status of the content. Use this parameter to change the\nstatus of a piece of content without passing the entire request body.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "current",
                "trashed",
                "historical",
                "draft"
              ],
              "default": "current"
            }
          },
          {
            "name": "conflictPolicy",
            "in": "query",
            "description": "The action that should be taken when conflicts are discovered.\nOnly used when publishing a draft page.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "abort"
              ],
              "default": "abort"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the content is updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Content"
                }
              }
            }
          },
          "400": {
            "description": "Returned if;\n\n- The request body is missing required parameters (version, type, title).\n- The type property has been set incorrectly."
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "404": {
            "description": "Returned if a draft with current content cannot be found when setting the status\nparameter to draft and the content status is current."
          },
          "409": {
            "description": "Returned if;\n- The page is a draft (draft pages cannot be updated). - The version property has not been set correctly for the content type."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentUpdate"
              }
            }
          },
          "description": "The updated content.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "delete": {
        "tags": [
          "/content"
        ],
        "summary": "Delete content",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Moves a piece of content to the space's trash or purges it from the trash,\ndepending on the content's type and status:\n\n- If the content's type is `page` or `blogpost` and its status is `current`,\nit will be trashed.\n- If the content's type is `page` or `blogpost` and its status is `trashed`,\nthe content will be purged from the trash and deleted permanently. Note,\nyou must also set the `status` query parameter to `trashed` in your request.\n- If the content's type is `comment` or `attachment`, it will be deleted\npermanently without being trashed.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Delete' permission for the space that the content is in, and permission to edit the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentResource.deleteContent_delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be deleted.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Set this to `trashed`, if the content's status is `trashed` and you want to purge it.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the content is successfully trashed."
          },
          "204": {
            "description": "Returned if the content is successfully purged."
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The requesting user does not have permission to trash or purge the\ncontent."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/content/{id}/child": {
      "get": {
        "tags": [
          "/content/{id}/child"
        ],
        "summary": "Get content children",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns a map of the direct children of a piece of content. A piece of content\nhas different types of child content, depending on its type. These are\nthe default parent-child content type relationships:\n\n- `page`: child content is `page`, `comment`, `attachment`\n- `blogpost`: child content is `comment`, `attachment`\n- `attachment`: child content is `comment`\n- `comment`: child content is `attachment`\n\nApps can override these default relationships. Apps can also introduce\nnew content types that create new parent-child content relationships.\n\nNote, the map will always include all child content types that are valid\nfor the content. However, if the content has no instances of a child content\ntype, the map will contain an empty array for that child content type.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space,\nand permission to view the content if it is a page.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ChildContentResource.getContentChildren_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its children.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the children to expand, where:\n\n- `attachment` returns all attachments for the content.\n- `comments` returns all comments for the content.\n- `page` returns all child pages of the content.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "attachment",
                  "comment",
                  "page"
                ]
              }
            }
          },
          {
            "name": "parentVersion",
            "in": "query",
            "description": "The version of the parent content to retrieve children for.\nCurrently, this only works for the latest version.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested content children are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentChildren"
                }
              }
            }
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/content/{id}/child/attachment": {
      "get": {
        "tags": [
          "/content/{id}/child"
        ],
        "summary": "Get attachments",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns the attachments for a piece of content.\n\nBy default, the following objects are expanded: `metadata`.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content. If the content is a blog post, 'View' permission\nfor the space is required.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.AttachmentResource.getAttachments_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its attachments.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/contentExpand"
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned attachments.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of attachments to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 25
            }
          },
          {
            "name": "filename",
            "in": "query",
            "description": "Filter the results to attachments that match the filename.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "mediaType",
            "in": "query",
            "description": "Filter the results to attachments that match the media type.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested attachments are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentArray"
                }
              }
            }
          },
          "404": {
            "description": "Returned if;\n\n- There is no parent content with the given ID.\n- The calling user does not have permission to view the parent content."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "post": {
        "tags": [
          "/content/{id}/child/attachment"
        ],
        "summary": "Create attachment",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-file"
            ]
          }
        ],
        "description": "Adds an attachment to a piece of content. This method only adds a new\nattachment. If you want to update an existing attachment, use\n[Create or update attachments](#api-content-id-child-attachment-put).\n\nNote, you must set a `X-Atlassian-Token: nocheck` header on the request\nfor this method, otherwise it will be blocked. This protects against XSRF\nattacks, which is necessary as this method accepts multipart/form-data.\n\nThe media type 'multipart/form-data' is defined in [RFC 1867](https://www.ietf.org/rfc/rfc1867.txt).\nMost client libraries have classes that make it easier to implement\nmultipart posts, like the [MultiPartEntity](http://hc.apache.org/httpcomponents-client-ga/httpmime/apidocs/org/apache/http/entity/mime/MultipartEntity.html)\nJava class provided by Apache HTTP Components.\n\nExample: This curl command attaches a file ('example.txt') to a container\n(id='123') with a comment and `minorEdits`=true.\n\n``` bash\ncurl -D- \\\n  -u admin:admin \\\n  -X POST \\\n  -H \"X-Atlassian-Token: nocheck\" \\\n  -F \"file=@example.txt\" \\\n  -F \"minorEdit=true\" \\\n  -F \"comment=Example attachment comment\" \\\n  http://myhost/rest/api/content/123/child/attachment\n```\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.AttachmentResource.createAttachments_post",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to add the attachment to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "The status of the content that the attachment is being added to.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "current",
                "draft"
              ],
              "default": "current"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the attachments were added to the content.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentArray"
                }
              }
            }
          },
          "400": {
            "description": "Returned if the content already has an attachment with the same filename."
          },
          "403": {
            "description": "Returned if;\n\n- Attachments are disabled in Confluence.\n- The calling user does not have permission to add attachments to the\ncontent."
          },
          "404": {
            "description": "Returned if;\n\n- The requested content is not found.\n- The user does not have permission to view it\n- The attachment exceeds the maximum configured attachment size."
          }
        },
        "requestBody": {
          "$ref": "#/components/requestBodies/com.atlassian.confluence.plugins.restapi.resources.AttachmentResource.createAttachments_post"
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "put": {
        "tags": [
          "/content/{id}/child/attachment"
        ],
        "summary": "Create or update attachment",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-file"
            ]
          }
        ],
        "description": "Adds an attachment to a piece of content. If the attachment already exists\nfor the content, then the attachment is updated (i.e. a new version of the\nattachment is created).\n\nNote, you must set a `X-Atlassian-Token: nocheck` header on the request\nfor this method, otherwise it will be blocked. This protects against XSRF\nattacks, which is necessary as this method accepts multipart/form-data.\n\nThe media type 'multipart/form-data' is defined in [RFC 1867](https://www.ietf.org/rfc/rfc1867.txt).\nMost client libraries have classes that make it easier to implement\nmultipart posts, like the [MultiPartEntity](http://hc.apache.org/httpcomponents-client-ga/httpmime/apidocs/org/apache/http/entity/mime/MultipartEntity.html)\nJava class provided by Apache HTTP Components.\n\nExample: This curl command attaches a file ('example.txt') to a piece of\ncontent (id='123') with a comment and `minorEdits`=true. If the 'example.txt'\nfile already exists, it will update it with a new version of the attachment.\n\n``` bash\ncurl -D- \\\n  -u admin:admin \\\n  -X PUT \\\n  -H \"X-Atlassian-Token: nocheck\" \\\n  -F \"file=@example.txt\" \\\n  -F \"minorEdit=true\" \\\n  -F \"comment=Example attachment comment\" \\\n  http://myhost/rest/api/content/123/child/attachment\n```\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.AttachmentResource.createOrUpdateAttachments_put",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to add the attachment to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "The status of the content that the attachment is being added to.\nThis should always be set to 'current'.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "current",
                "draft"
              ],
              "default": "current"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the attachments were added to the content.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentArray"
                }
              }
            }
          },
          "403": {
            "description": "Returned if;\n\n- Attachments are disabled.\n- The calling user does not have permission to add attachments to the\ncontent."
          },
          "404": {
            "description": "Returned if;\n\n- The requested content is not found.\n- The user does not have permission to view it.\n- The attachment exceeds the maximum configured attachment size."
          }
        },
        "requestBody": {
          "$ref": "#/components/requestBodies/com.atlassian.confluence.plugins.restapi.resources.AttachmentResource.createAttachments_post"
        },
        "x-atlassian-connect-scope": "WRITE"
      }
    },
    "/content/{id}/child/attachment/{attachmentId}": {
      "put": {
        "tags": [
          "/content/{id}/child/attachment"
        ],
        "summary": "Update attachment properties",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-file",
              "write:confluence-props"
            ]
          }
        ],
        "description": "Updates the attachment properties, i.e. the non-binary data of an attachment\nlike the filename, media-type, comment, and parent container.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.AttachmentResource.updateAttachmentProperties_put",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content that the attachment is attached to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "attachmentId",
            "in": "path",
            "description": "The ID of the attachment to update.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the attachment is updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Content"
                }
              }
            }
          },
          "400": {
            "description": "Returned if;\n\n- The attachment id is invalid.\n- The attachment version number is invalid."
          },
          "403": {
            "description": "Returned if;\n\n- The calling user is not permitted to update or move the attachment.\n- The attachment is being moved to an invalid content type."
          },
          "404": {
            "description": "Returned if no attachment is found for the attachment ID."
          },
          "409": {
            "description": "Returned if the version of the supplied attachment does not match\nthe version of the attachment stored in the database."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AttachmentUpdate"
              }
            }
          },
          "description": "The details of the attachment to be updated.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      }
    },
    "/content/{id}/child/attachment/{attachmentId}/data": {
      "post": {
        "tags": [
          "/content/{id}/child/attachment"
        ],
        "summary": "Update attachment data",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-file"
            ]
          }
        ],
        "description": "Updates the binary data of an attachment, given the attachment ID, and\noptionally the comment and the minor edit field.\n\nThis method is essentially the same as [Create or update attachments](#api-content-id-child-attachment-put),\nexcept that it matches the attachment ID rather than the name.\n\nNote, you must set a `X-Atlassian-Token: nocheck` header on the request\nfor this method, otherwise it will be blocked. This protects against XSRF\nattacks, which is necessary as this method accepts multipart/form-data.\n\nThe media type 'multipart/form-data' is defined in [RFC 1867](https://www.ietf.org/rfc/rfc1867.txt).\nMost client libraries have classes that make it easier to implement\nmultipart posts, like the [MultiPartEntity](http://hc.apache.org/httpcomponents-client-ga/httpmime/apidocs/org/apache/http/entity/mime/MultipartEntity.html)\nJava class provided by Apache HTTP Components.\n\nExample: This curl command updates an attachment (id='att456') that is attached\nto a piece of content (id='123') with a comment and `minorEdits`=true.\n\n``` bash\ncurl -D- \\\n  -u admin:admin \\\n  -X POST \\\n  -H \"X-Atlassian-Token: nocheck\" \\\n  -F \"file=@example.txt\" \\\n  -F \"minorEdit=true\" \\\n  -F \"comment=Example attachment comment\" \\\n  http://myhost/rest/api/content/123/child/attachment/att456/data\n```\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.AttachmentResource.updateAttachmentData_post",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content that the attachment is attached to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "attachmentId",
            "in": "path",
            "description": "The ID of the attachment to update.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the attachment is updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Content"
                }
              }
            }
          },
          "400": {
            "description": "Returned if the attachment id is invalid."
          },
          "404": {
            "description": "Returned if no attachment is found for the attachment ID."
          }
        },
        "requestBody": {
          "$ref": "#/components/requestBodies/com.atlassian.confluence.plugins.restapi.resources.AttachmentResource.createAttachments_post"
        },
        "x-atlassian-connect-scope": "WRITE"
      }
    },
    "/content/{id}/child/comment": {
      "get": {
        "tags": [
          "/content/{id}/child"
        ],
        "summary": "Get content comments",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns the comments on a piece of content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space,\nand permission to view the content if it is a page.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ChildContentResource.getContentComments_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its comments.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/contentExpand"
          },
          {
            "name": "parentVersion",
            "in": "query",
            "description": "The version of the parent content to retrieve children for.\nCurrently, this only works for the latest version.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned comments.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of comments to return per page. Note,\nthis may be restricted by fixed system limits.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 25
            }
          },
          {
            "name": "location",
            "in": "query",
            "description": "The location of the comments in the page. Multiple locations can be specified.\nIf no location is specified, comments from all locations are returned.",
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "enum": [
                "inline",
                "footer",
                "resolved"
              ]
            }
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Currently, this parameter is not used.\nComments are returned at the root level only.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested comments are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentArray"
                }
              }
            }
          },
          "404": {
            "description": "Returned if;\n\n- There is no parent content with the given ID.\n- The calling user does not have permission to view the parent content."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/content/{id}/child/{type}": {
      "get": {
        "tags": [
          "/content/{id}/child"
        ],
        "summary": "Get content children by type",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns all children of a given type, for a piece of content.\nA piece of content has different types of child content, depending on its type:\n\n- `page`: child content is `page`, `comment`, `attachment`\n- `blogpost`: child content is `comment`, `attachment`\n- `attachment`: child content is `comment`\n- `comment`: child content is `attachment`\n\nCustom content types that are provided by apps can also be returned.\n\nNote, this method only returns direct children. To return children at all\nlevels, use [Get descendants by type](#api-content-id-descendant-type-get).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: 'View' permission for the space,\nand permission to view the content if it is a page.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ChildContentResource.getContentChildrenByType_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its children.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "path",
            "description": "The type of children to return.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "page",
                "comment",
                "attachment"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/contentExpand"
          },
          {
            "name": "parentVersion",
            "in": "query",
            "description": "The version of the parent content to retrieve children for.\nCurrently, this only works for the latest version.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned content.",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of content to return per page. Note,\nthis may be restricted by fixed system limits.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested content is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentArray"
                }
              }
            }
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/content/{id}/descendant": {
      "get": {
        "tags": [
          "/content/{id}/descendant"
        ],
        "summary": "Get content descendants",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns a map of the descendants of a piece of content. This is similar\nto [Get content children](#api-content-id-child-get), except that this\nmethod returns child pages at all levels, rather than just the direct\nchild pages.\n\nA piece of content has different types of descendants, depending on its type:\n\n- `page`: descendant is `page`, `comment`, `attachment`\n- `blogpost`: descendant is `comment`, `attachment`\n- `attachment`: descendant is `comment`\n- `comment`: descendant is `attachment`\n\nThe map will always include all descendant types that are valid for the content.\nHowever, if the content has no instances of a descendant type, the map will\ncontain an empty array for that descendant type.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'View' permission for the space, and permission to view the content if it\nis a page.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.DescendantContentResource.getContentDescendants_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its descendants.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the children to\nexpand, where:\n\n- `attachment` returns all attachments for the content.\n- `comments` returns all comments for the content.\n- `page` returns all child pages of the content.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "attachment",
                  "comment",
                  "page"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested descendants are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentChildren"
                }
              }
            }
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/content/{id}/descendant/{type}": {
      "get": {
        "tags": [
          "/content/{id}/descendant"
        ],
        "summary": "Get content descendants by type",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns all descendants of a given type, for a piece of content. This is\nsimilar to [Get content children by type](#api-content-id-child-type-get),\nexcept that this method returns child pages at all levels, rather than just\nthe direct child pages.\n\nA piece of content has different types of descendants, depending on its type:\n\n- `page`: descendant is `page`, `comment`, `attachment`\n- `blogpost`: descendant is `comment`, `attachment`\n- `attachment`: descendant is `comment`\n- `comment`: descendant is `attachment`\n\nCustom content types that are provided by apps can also be returned.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'View' permission for the space, and permission to view the content if it\nis a page.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.DescendantContentResource.descendantsOfType_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its descendants.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "path",
            "description": "The type of descendants to return.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "page",
                "comment",
                "attachment"
              ]
            }
          },
          {
            "$ref": "#/components/parameters/contentExpand"
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned content.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of content to return per page. Note,\nthis may be restricted by fixed system limits.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested content is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentArray"
                }
              }
            }
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/content/{id}/history": {
      "get": {
        "tags": [
          "/content"
        ],
        "summary": "Get history for content",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns the most recent update for a piece of content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: Permission to view the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentResource.getHistoryForContent_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its history.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the content history to expand.\n\n- `lastUpdated` returns information about the most recent update of the content,\nincluding who updated it and when it was updated.\n- `previousVersion` returns information about the update prior to the current content\nupdate. For this method, it contains the same information as `lastUpdated`.\n- `contributors` returns all of the users who have contributed to the content.\n- `nextVersion` This parameter is not used for this method.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "lastUpdated",
                  "previousVersion",
                  "contributors",
                  "nextVersion"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested content history is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentHistory"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/content/{id}/history/{version}/macro/id/{macroId}": {
      "get": {
        "tags": [
          "/content"
        ],
        "summary": "Get macro body by macro ID",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.all"
            ]
          }
        ],
        "description": "Returns the body of a macro in storage format, for the given macro ID.\nThis includes information like the name of the macro, the body of the macro,\nand any macro parameters. This method is mainly used by Cloud apps.\n\nAbout the macro ID: When a macro is created in a new version of content,\nConfluence will generate a random ID for it, unless an ID is specified\n(by an app). The macro ID will look similar to this: '50884bd9-0cb8-41d5-98be-f80943c14f96'.\nThe ID is then persisted as new versions of content are created, and is\nonly modified by Confluence if there are conflicting IDs.\n\nNote, to preserve backwards compatibility this resource will also match on\nthe hash of the macro body, even if a macro ID is found. This check will\neventually become redundant, as macro IDs are generated for pages and\ntransparently propagate out to all instances.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content that the macro is in.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentResource.getMacroBodyByMacroId_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID for the content that contains the macro.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "version",
            "in": "path",
            "description": "The version of the content that contains the macro.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "macroId",
            "in": "path",
            "description": "The ID of the macro. This is usually passed by the app that the\nmacro is in. Otherwise, find the macro ID by querying the desired\ncontent and version, then expanding the body in storage format.\nFor example, '/content/196611/version/7?expand=content.body.storage'.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested macro body is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MacroInstance"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content.\n- The macro does not exist in the specified version.\n- There is no macro matching the given macro ID or hash."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/content/{id}/label": {
      "get": {
        "tags": [
          "/content/{id}/label"
        ],
        "summary": "Get labels for content",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns the labels on a piece of content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'View' permission for the space and permission to view the content if it is a page.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentLabelsResource.getLabelsForContent_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its labels.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "prefix",
            "in": "query",
            "description": "Filters the results to labels with the specified prefix. If this parameter\nis not specified, then labels with any prefix will be returned.\n\n- `global` prefix is used by default when a user adds a label\nvia the UI.\n- `my` prefix can be explicitly added by a user when adding a label\nvia the UI, e.g. 'my:example-label'. Also, when a page is selected as\na favourite, the 'my:favourite' label is automatically added.\n- `team` can used when adding labels via [Add labels to content](#api-content-id-label-post)\nbut is not used in the UI.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "global",
                "my",
                "team"
              ]
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned labels.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of labels to return per page. Note,\nthis may be restricted by fixed system limits.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested labels are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LabelArray"
                }
              }
            }
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "post": {
        "tags": [
          "/content/{id}/label"
        ],
        "summary": "Add labels to content",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Adds labels to a piece of content. Does not modify the existing labels.\n\nNotes:\n\n- Labels can also be added when creating content ([Create content](#api-content-post)).\n- Labels can be updated when updating content ([Update content](#api-content-id-put)).\nThis will delete the existing labels and replace them with the labels in\nthe request.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentLabelsResource.addLabelsToContent_post",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content that will have labels added to it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the labels are added to the content.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LabelArray"
                }
              }
            }
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LabelCreateArray"
              }
            }
          },
          "description": "The labels to add to the content.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "delete": {
        "tags": [
          "/content/{id}/label"
        ],
        "summary": "Remove label from content using query parameter",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Removes a label from a piece of content. This is similar to\n[Remove label from content](#api-content-id-label-label-delete)\nexcept that the label name is specified via a query parameter.\n\nUse this method if the label name has \"/\" characters, as\n[Remove label from content using query parameter](#api-content-id-label-delete)\ndoes not accept \"/\" characters for the label name.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentLabelsResource.removeLabelFromContentUsingQueryParameter_delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content that the label will be removed from.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "name",
            "in": "query",
            "description": "The name of the label to be removed.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Returned if the label is removed. The response body will be empty."
          },
          "403": {
            "description": "Returned if the calling user can view but not edit the content."
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/content/{id}/label/{label}": {
      "delete": {
        "tags": [
          "/content/{id}/label"
        ],
        "summary": "Remove label from content",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Removes a label from a piece of content. This is similar to\n[Remove label from content using query parameter](#api-content-id-label-delete)\nexcept that the label name is specified via a path parameter.\n\nUse this method if the label name does not have \"/\" characters, as the path\nparameter does not accept \"/\" characters for security reasons. Otherwise,\nuse [Remove label from content using query parameter](#api-content-id-label-delete).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentLabelsResource.removeLabelFromContent_delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content that the label will be removed from.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "label",
            "in": "path",
            "description": "The name of the label to be removed.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Returned if the label is removed. The response body will be empty."
          },
          "400": {
            "description": "Returned if the label name has a \"/\" character."
          },
          "403": {
            "description": "Returned if the calling user can view but not edit the content."
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/content/{id}/notification/child-created": {
      "get": {
        "tags": [
          "/content/{id}/notification"
        ],
        "summary": "Get watches for page",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns the watches for a page. A user that watches a page will receive\nreceive notifications when the page is updated.\n\nIf you want to manage watches for a page, use the following `user` methods:\n\n- [Get content watch status for user](#api-user-watch-content-contentId-get)\n- [Add content watch](#api-user-watch-content-contentId-post)\n- [Remove content watch](#api-user-watch-content-contentId-delete)\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentNotificationsResource.getWatchesForPage_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its watches.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned watches.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of watches to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested watches are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WatchArray"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/content/{id}/notification/created": {
      "get": {
        "tags": [
          "/content/{id}/notification"
        ],
        "summary": "Get watches for space",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns all space watches for the space that the content is in. A user that\nwatches a space will receive receive notifications when any content in the\nspace is updated.\n\nIf you want to manage watches for a space, use the following `user` methods:\n\n- [Get space watch status for user](#api-user-watch-space-spaceKey-get)\n- [Add space watch](#api-user-watch-space-spaceKey-post)\n- [Remove space watch](#api-user-watch-space-spaceKey-delete)\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentNotificationsResource.getWatchesForSpace_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its watches.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned watches.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of watches to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested watches are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WatchArray"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/content/{id}/pagehierarchy/copy": {
      "post": {
        "summary": "Copy page hierarchy",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Copy page hierarchy allows the copying of an entire hierarchy of pages and their associated properties, permissions and attachments.\n The id path parameter refers to the content id of the page to copy, and the new parent of this copied page is defined using the destinationPageId in the request body.\n The titleOptions object defines the rules of renaming page titles during the copy;\n for example, search and replace can be used in conjunction to rewrite the copied page titles.\n\n Response example:\n <pre><code>\n {\n      \"id\" : \"1180606\",\n      \"links\" : {\n           \"status\" : \"/rest/api/longtask/1180606\"\n      }\n }\n </code></pre>\n Use the /longtask/<taskId> REST API to get the copy task status.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.PageHierarchyResource.copyPageHierarchy_post",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns a full JSON representation of a long running task"
          },
          "400": {
            "description": "Returned if original page or destination page doesn't exist."
          },
          "403": {
            "description": "Returned if the user does not have permission to create content at destination"
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyPageHierarchy"
              }
            }
          },
          "description": "Request object from json post body",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      }
    },
    "/content/{id}/property": {
      "get": {
        "tags": [
          "/content/{id}/property"
        ],
        "summary": "Get content properties",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-props"
            ]
          }
        ],
        "description": "Returns the properties for a piece of content. For more information\nabout content properties, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'View' permission for the space, and permission to view the content if it is a page.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentPropertyResource.getContentProperties_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its properties.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the content to\nexpand. By default, the `version` object is expanded.\n\n- `content` returns the content that the property is stored against.\n- `version` returns information about the version of the property, such\nas the version number, when it was created, etc.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "content",
                  "version"
                ]
              }
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned properties.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of properties to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested properties are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentPropertyArray"
                }
              }
            }
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID\n- The calling user does not have permission to view the content."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "post": {
        "tags": [
          "/content/{id}/property"
        ],
        "summary": "Create content property",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-props"
            ]
          }
        ],
        "description": "Creates a property for an existing piece of content. For more information\nabout content properties, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).\n\nThis is the same as [Create content property for key](#api-content-id-property-key-post)\nexcept that the key is specified in the request body instead of as a\npath parameter.\n\nContent properties can also be added when creating a new piece of content\nby including them in the `metadata.properties` of the request.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentPropertyResource.createContentProperty_post",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to add the property to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the content property is created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentProperty"
                }
              }
            }
          },
          "400": {
            "description": "Returned if;\n\n- The content already has a property with the given key.\n- The key is too long.\n- The key is empty."
          },
          "403": {
            "description": "Returned if the user does not have permission to edit the content\nwith the given ID."
          },
          "413": {
            "description": "Returned if the value is too long."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentPropertyCreate"
              }
            }
          },
          "description": "The content property to be created.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      }
    },
    "/content/{id}/property/{key}": {
      "get": {
        "tags": [
          "/content/{id}/property"
        ],
        "summary": "Get content property",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-props"
            ]
          }
        ],
        "description": "Returns a content property for a piece of content. For more information, see\n[Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'View' permission for the space, and permission to view the content if it is a page.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentPropertyResource.getContentProperty_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for the property.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "description": "The key of the content property.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the content to\nexpand. By default, the `version` object is expanded.\n\n- `content` returns the content that the property is stored against.\n- `version` returns information about the version of the property, such\nas the version number, when it was created, etc.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "content",
                  "version"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the content property is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentProperty"
                }
              }
            }
          },
          "404": {
            "description": "Returned if;\n\n- The calling user does not have permission to view the content.\n- There is no content with the given ID.\n- There is no property with the given key."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "post": {
        "tags": [
          "/content/{id}/property"
        ],
        "summary": "Create content property for key",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-props"
            ]
          }
        ],
        "description": "Creates a property for an existing piece of content. For more information\nabout content properties, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).\n\nThis is the same as [Create content property](#api-content-id-property-post)\nexcept that the key is specified as a path parameter instead of in the\nrequest body.\n\nContent properties can also be added when creating a new piece of content\nby including them in the `metadata.properties` of the request.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentPropertyResource.createContentPropertyForKey_post",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to add the property to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "description": "The key of the content property. Required.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the content property is created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentProperty"
                }
              }
            }
          },
          "400": {
            "description": "Returned if;\n\n- The content already has a property with the given key.\n- The key is too long.\n- The key is empty."
          },
          "403": {
            "description": "Returned if the user does not have permission to edit the content\nwith the given ID."
          },
          "413": {
            "description": "Returned if the value is too long."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentPropertyCreateNoKey"
              }
            }
          },
          "description": "The content property to be created.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "put": {
        "tags": [
          "/content/{id}/property"
        ],
        "summary": "Update content property",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-props"
            ]
          }
        ],
        "description": "Updates an existing content property. This method will also create a new\nproperty for a piece of content, if the property key does not exist and\nthe property version is 1. For more information about content properties, see\n[Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentPropertyResource.updateContentProperty_put",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content that the property belongs to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "description": "The key of the property.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the content property is created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentProperty"
                }
              }
            }
          },
          "400": {
            "description": "Returned if;\n\n- The content already a property with the given key.\n- The key is too long.\n- The key is empty."
          },
          "403": {
            "description": "Returned if the user does not have permission to edit the content\nwith the given ID."
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content.\n- There is no property with the given key and the version number is not 1."
          },
          "409": {
            "description": "Returned if the property version is not correctly incremented."
          },
          "413": {
            "description": "Returned if the value is too long."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentPropertyUpdate"
              }
            }
          },
          "description": "The content property being updated.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "delete": {
        "tags": [
          "/content/{id}/property"
        ],
        "summary": "Delete content property",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-props"
            ]
          }
        ],
        "description": "Deletes a content property. For more information about content properties, see\n[Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentPropertyResource.deleteContentProperty_delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content that the property belongs to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "description": "The key of the property.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Returned if the content property is deleted."
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/content/{id}/restriction": {
      "get": {
        "tags": [
          "/content/{id}/restriction"
        ],
        "summary": "Get restrictions",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.all"
            ]
          }
        ],
        "description": "Returns the restrictions on a piece of content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentRestrictionResource.getRestrictions_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its restrictions.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the content\nrestrictions to expand. By default, the following objects are expanded:\n`restrictions.user`, `restrictions.group`.\n\n- `restrictions.user` returns the piece of content that the restrictions are\napplied to.\n- `restrictions.group` returns the piece of content that the restrictions are\napplied to.\n- `content` returns the piece of content that the restrictions are\napplied to.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "restrictions.user",
                  "restrictions.group",
                  "content"
                ]
              }
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the users and groups in the returned restrictions.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of users and the maximum number of groups, in the\nreturned restrictions, to return per page. Note, this may be restricted\nby fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested restrictions are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentRestrictionArray"
                }
              }
            }
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "post": {
        "tags": [
          "/content/{id}/restriction"
        ],
        "summary": "Add restrictions",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Adds restrictions to a piece of content. Note, this does not change any\nexisting restrictions on the content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentRestrictionResource.addRestrictions_post",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to add restrictions to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the content\nrestrictions (returned in response) to expand.\n\n- `restrictions.user` returns the piece of content that the restrictions are\napplied to. Expanded by default.\n- `restrictions.group` returns the piece of content that the restrictions are\napplied to. Expanded by default.\n- `content` returns the piece of content that the restrictions are\napplied to.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "restrictions.user",
                  "restrictions.group",
                  "content"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested restrictions are added.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentRestrictionArray"
                }
              }
            }
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to add restrictions to\nthe content."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentRestrictionUpdateArray"
              }
            }
          },
          "description": "The restrictions to be added to the content.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "put": {
        "tags": [
          "/content/{id}/restriction"
        ],
        "summary": "Update restrictions",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Updates restrictions for a piece of content. This removes the existing\nrestrictions and replaces them with the restrictions in the request.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentRestrictionResource.updateRestrictions_put",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to update restrictions for.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the content\nrestrictions (returned in response) to expand.\n\n- `restrictions.user` returns the piece of content that the restrictions are\napplied to. Expanded by default.\n- `restrictions.group` returns the piece of content that the restrictions are\napplied to. Expanded by default.\n- `content` returns the piece of content that the restrictions are\napplied to.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "restrictions.user",
                  "restrictions.group",
                  "content"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested restrictions are updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentRestrictionArray"
                }
              }
            }
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to update restrictions\nfor the content."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentRestrictionUpdateArray"
              }
            }
          },
          "description": "The updated restrictions for the content.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "delete": {
        "tags": [
          "/content/{id}/restriction"
        ],
        "summary": "Delete restrictions",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Removes all restrictions (read and update) on a piece of content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentRestrictionResource.deleteRestrictions_delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to remove restrictions from.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the content\nrestrictions (returned in response) to expand.\n\n- `restrictions.user` returns the piece of content that the restrictions are\napplied to. Expanded by default.\n- `restrictions.group` returns the piece of content that the restrictions are\napplied to. Expanded by default.\n- `content` returns the piece of content that the restrictions are\napplied to.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "restrictions.user",
                  "restrictions.group",
                  "content"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the restrictions are removed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentRestrictionArray"
                }
              }
            }
          },
          "400": {
            "description": "Returned if any of the above validation rules are violated"
          },
          "403": {
            "description": "Returned if the calling user does not have permission to alter the\nrestrictions on the content."
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/content/{id}/restriction/byOperation": {
      "get": {
        "tags": [
          "/content/{id}/restriction"
        ],
        "summary": "Get restrictions by operation",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.all"
            ]
          }
        ],
        "description": "Returns restrictions on a piece of content by operation. This method is\nsimilar to [Get restrictions](#api-content-id-restriction-get) except that\nthe operations are properties of the return object, rather than items in\na results array.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentRestrictionResource.getRestrictionsByOperation_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its restrictions.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the content\nrestrictions to expand.\n\n- `restrictions.user` returns the piece of content that the restrictions are\napplied to. Expanded by default.\n- `restrictions.group` returns the piece of content that the restrictions are\napplied to. Expanded by default.\n- `content` returns the piece of content that the restrictions are\napplied to.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "restrictions.user",
                  "restrictions.group",
                  "content"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested restrictions are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "_links"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "administer": {
                      "$ref": "#/components/schemas/ContentRestriction"
                    },
                    "copy": {
                      "$ref": "#/components/schemas/ContentRestriction"
                    },
                    "create": {
                      "$ref": "#/components/schemas/ContentRestriction"
                    },
                    "delete": {
                      "$ref": "#/components/schemas/ContentRestriction"
                    },
                    "export": {
                      "$ref": "#/components/schemas/ContentRestriction"
                    },
                    "move": {
                      "$ref": "#/components/schemas/ContentRestriction"
                    },
                    "purge": {
                      "$ref": "#/components/schemas/ContentRestriction"
                    },
                    "purge_version": {
                      "$ref": "#/components/schemas/ContentRestriction"
                    },
                    "read": {
                      "$ref": "#/components/schemas/ContentRestriction"
                    },
                    "restore": {
                      "$ref": "#/components/schemas/ContentRestriction"
                    },
                    "update": {
                      "$ref": "#/components/schemas/ContentRestriction"
                    },
                    "use": {
                      "$ref": "#/components/schemas/ContentRestriction"
                    },
                    "_links": {
                      "$ref": "#/components/schemas/GenericLinks"
                    }
                  }
                }
              }
            }
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/content/{id}/restriction/byOperation/{operationKey}": {
      "get": {
        "tags": [
          "/content/{id}/restriction"
        ],
        "summary": "Get restrictions for operation",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.all"
            ]
          }
        ],
        "description": "Returns the restictions on a piece of content for a given operation (read\nor update).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentRestrictionResource.getRestrictionsForOperation_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its restrictions.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operationKey",
            "in": "path",
            "description": "The operation type of the restrictions to be returned.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "read",
                "update"
              ]
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the content\nrestrictions to expand.\n\n- `restrictions.user` returns the piece of content that the restrictions are\napplied to. Expanded by default.\n- `restrictions.group` returns the piece of content that the restrictions are\napplied to. Expanded by default.\n- `content` returns the piece of content that the restrictions are\napplied to.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "restrictions.user",
                  "restrictions.group",
                  "content"
                ]
              }
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the users and groups in the returned restrictions.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of users and the maximum number of groups, in the\nreturned restrictions, to return per page. Note, this may be restricted\nby fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested restrictions are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentRestriction"
                }
              }
            }
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/content/{id}/restriction/byOperation/{operationKey}/group/{groupName}": {
      "get": {
        "tags": [
          "/content/{id}/restriction"
        ],
        "summary": "Get content restriction status for group",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.all"
            ]
          }
        ],
        "description": "Returns whether the specified content restriction applies to a group.\nFor example, if a page with `id=123` has a `read` restriction for the `admins` group,\nthe following request will return `true`:\n\n`https://your-domain.atlassian.net/wiki/rest/api/content/123/restriction/byOperation/read/group/admins`\n\nNote that a response of `true` does not guarantee that the group can view the page, as it does not account for\naccount-inherited restrictions, space permissions, or even product access. For more\ninformation, see [Confluence permissions](https://confluence.atlassian.com/x/_AozKw).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentRestrictionResource.getContentRestrictionStatusForGroup_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content that the restriction applies to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operationKey",
            "in": "path",
            "description": "The operation that the restriction applies to.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "read",
                "update"
              ]
            }
          },
          {
            "name": "groupName",
            "in": "path",
            "description": "The name of the group to be queried for whether the content restriction\napplies to it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returns true if the content restriction applies to the group. The response\nwill not return a response body."
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content.\n- An invalid operation or group is specified."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "put": {
        "tags": [
          "/content/{id}/restriction"
        ],
        "summary": "Add group to content restriction",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Adds a group to a content restriction. That is, grant read or update\npermission to the group for a piece of content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentRestrictionResource.addGroupToContentRestriction_put",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content that the restriction applies to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operationKey",
            "in": "path",
            "description": "The operation that the restriction applies to.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "read",
                "update"
              ]
            }
          },
          {
            "name": "groupName",
            "in": "path",
            "description": "The name of the group to add to the content restriction.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the group is added to the content restriction. The response\nbody will be empty."
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content.\n- An invalid operation or group is specified."
          }
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "delete": {
        "tags": [
          "/content/{id}/restriction"
        ],
        "summary": "Remove group from content restriction",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Removes a group from a content restriction. That is, remove read or update\npermission for the group for a piece of content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentRestrictionResource.removeGroupFromContentRestriction_delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content that the restriction applies to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operationKey",
            "in": "path",
            "description": "The operation that the restriction applies to.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "read",
                "update"
              ]
            }
          },
          {
            "name": "groupName",
            "in": "path",
            "description": "The name of the group to remove from the content restriction.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the group is removed from the content restriction. The response\nbody will be empty."
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content.\n- The restriction to be deleted does not exist."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/content/{id}/restriction/byOperation/{operationKey}/user": {
      "get": {
        "tags": [
          "/content/{id}/restriction"
        ],
        "summary": "Get content restriction status for user",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.all"
            ]
          }
        ],
        "description": "Returns whether the specified content restriction applies to a user.\nFor example, if a page with `id=123` has a `read` restriction for a user with an account ID of\n`384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`, the following request will return `true`:\n\n`https://your-domain.atlassian.net/wiki/rest/api/content/123/restriction/byOperation/read/user?accountId=384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`\n\nNote that a response of `true` does not guarantee that the user can view the page, as it does not account for\naccount-inherited restrictions, space permissions, or even product access. For more\ninformation, see [Confluence permissions](https://confluence.atlassian.com/x/_AozKw).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentRestrictionResource.getContentRestrictionStatusForUser_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content that the restriction applies to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operationKey",
            "in": "path",
            "description": "The operation that is restricted.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe key of the user to be queried for whether the content restriction applies to it.\nRequired, unless the `username` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userName",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe username of the user to be queried for whether the content restriction applies to it.\nRequired, unless the `key` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "description": "The account ID of the user to be queried for whether the content restriction applies to it. The accountId\nuniquely identifies the user across all Atlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.\nRequired, unless `username` or `userKey` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Return true if the content restriction applies to the user. The response\nbody will be empty."
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content.\n- An invalid operation or user is specified."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "put": {
        "tags": [
          "/content/{id}/restriction"
        ],
        "summary": "Add user to content restriction",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Adds a user to a content restriction. That is, grant read or update\npermission to the user for a piece of content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentRestrictionResource.addUserToContentRestriction_put",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content that the restriction applies to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operationKey",
            "in": "path",
            "description": "The operation that the restriction applies to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe key of the user to add to the content restriction. Required, unless the `username` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userName",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe username of the user to add to the content restriction. Required, unless the `key` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "description": "The account ID of the user to add to the content restriction. The accountId uniquely identifies the user across\nall Atlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.\nRequired, unless `username` or `userKey` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the user is added to the content restriction. The response\nbody will be empty."
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content.\n- An invalid operation or group is specified."
          }
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "delete": {
        "tags": [
          "/content/{id}/restriction"
        ],
        "summary": "Remove user from content restriction",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Removes a group from a content restriction. That is, remove read or update\npermission for the group for a piece of content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to edit the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentRestrictionResource.removeUserFromContentRestriction_delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content that the restriction applies to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "operationKey",
            "in": "path",
            "description": "The operation that the restriction applies to.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "read",
                "update"
              ]
            }
          },
          {
            "name": "key",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe key of the user to remove from the content restriction. Required, unless the `username` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "userName",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe username of the user to remove from the content restriction. Required, unless the `key` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "description": "The account ID of the user to remove from the content restriction. The accountId uniquely identifies the user\nacross all Atlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.\nRequired, unless `username` or `userKey` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the user is removed from the content restriction. The response\nbody will be empty."
          },
          "404": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- The calling user does not have permission to view the content.\n- An invalid operation or group is specified."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/content/{id}/version": {
      "get": {
        "tags": [
          "/content/{id}/version"
        ],
        "summary": "Get content versions",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns the versions for a piece of content in descending order.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content. If the content is a blog post, 'View' permission\nfor the space is required.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentVersionResource.getContentVersions_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its versions.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned versions.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of versions to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 200
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the content to expand.\n\n- `collaborators` returns the users that collaborated on the version.\n- `content` returns the content for the version.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "collaborators",
                  "content"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested versions are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VersionArray"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to view the\ncontent."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "post": {
        "tags": [
          "/content/{id}/version"
        ],
        "summary": "Restore content version",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Restores a historical version to be the latest version. That is, a new version\nis created with the content of the historical version.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentVersionResource.restoreContentVersion_post",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content for which the history will be restored.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the returned\ncontent to expand.\n\n- `collaborators` returns the users that collaborated on the version.\n- `content` returns the content for the version.",
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "collaborators",
                  "content"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the version is restored.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Version"
                }
              }
            }
          },
          "400": {
            "description": "Returned if;\n\n- There is no content with the given ID.\n- There is no version with the given version number.\n- The version number is the current version."
          },
          "403": {
            "description": "Returned if the calling user doesn't have permission to edit the\ncontent."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VersionRestore"
              }
            }
          },
          "description": "The content version to be restored.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      }
    },
    "/content/{id}/version/{versionNumber}": {
      "get": {
        "tags": [
          "/content/{id}/version"
        ],
        "summary": "Get content version",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns a version for a piece of content.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the content. If the content is a blog post, 'View' permission\nfor the space is required.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentVersionResource.getContentVersion_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content to be queried for its version.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "versionNumber",
            "in": "path",
            "description": "The number of the version to be retrieved.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the content to\nexpand. By default, the `content` object is expanded.\n\n- `collaborators` returns the users that collaborated on the version.\n- `content` returns the content for the version.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "collaborators",
                  "content"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the version is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Version"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to view the\ncontent."
          },
          "404": {
            "description": "Returned if the content or version cannot be found."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "delete": {
        "tags": [
          "/content/{id}/version"
        ],
        "summary": "Delete content version",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Delete a historical version. This does not delete the changes made to the\ncontent in that version, rather the changes for the deleted version are\nrolled up into the next version. Note, you cannot delete the current version.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to update the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentVersionResource.deleteContentVersion_delete",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the content that the version will be deleted from.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "versionNumber",
            "in": "path",
            "description": "The number of the version to be deleted. The version number starts\nfrom 1 up to current version.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Returned if the version is deleted."
          },
          "400": {
            "description": "Returned if;\n\n- The content or version cannot be found.\n- The current version is specified."
          },
          "403": {
            "description": "Returned if the calling user doesn't have permission to edit the\ncontent."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/contentbody/convert/{to}": {
      "post": {
        "tags": [
          "/contentbody/convert/{to}"
        ],
        "summary": "Convert content body",
        "description": "Converts a content body from one format to another format.\n\nSupported conversions:\n\n- storage: view, export_view, styled_view, editor\n- editor: storage\n- view: none\n- export_view: none\n- styled_view: none\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nIf request specifies 'contentIdContext', 'View' permission for the space, and permission to view the content.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ContentBodyResource.convertContentBody_post",
        "parameters": [
          {
            "name": "to",
            "in": "path",
            "description": "The name of the target format for the content body.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/contentExpand"
          },
          {
            "name": "spaceKeyContext",
            "in": "query",
            "description": "The space key used for resolving embedded content (page includes,\nfiles, and links) in the content body. For example, if the source content\ncontains the link `<ac:link><ri:page ri:content-title=\"Example page\" /><ac:link>`\nand the `spaceKeyContext=TEST` parameter is provided, then the link\nwill be converted to a link to the \"Example page\" page in the \"TEST\" space.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "contentIdContext",
            "in": "query",
            "description": "The content ID used to find the space for resolving embedded content\n(page includes, files, and links) in the content body. For example,\nif the source content contains the link `<ac:link><ri:page ri:content-title=\"Example page\" /><ac:link>`\nand the `contentIdContext=123` parameter is provided, then the link\nwill be converted to a link to the \"Example page\" page in the same space\nthat has the content with ID=123. Note, `spaceKeyContext` will be ignored\nif this parameter is provided.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "embeddedContentRender",
            "in": "query",
            "description": "Mode used for rendering embedded content, like attachments.\n\n- `current` renders the embedded content using the latest version.\n- `version-at-save` renders the embedded content using the version at\nthe time of save.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "current",
                "version-at-save"
              ],
              "default": "current"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the content is converted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentBody"
                }
              }
            }
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentBodyCreate"
              }
            }
          },
          "description": "The content body to convert.",
          "required": true
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/experimental/cql/pdcleaner": {
      "post": {
        "summary": "Convert user identifiers to account IDs in CQL queries",
        "description": "Converts one or more CQL queries with user identifiers (username or user key)\nto equivalent CQL queries with account IDs.\n\nYou may wish to use this operation if your system stores CQL queries and you\nwant to make them GDPR-compliant. For more information about GDPR-related changes,\nsee the [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ExperimentalCQLResource.cqlPDCleaner_post",
        "responses": {
          "200": {
            "description": "Returned if the request is successful. The CQL queries are returned\nin the same order that they were passed. Note that if the user in a\nCQL query cannot be found, a `200` code is still returned but the username\nor key is converted to an empty string.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CQLPersonalDataConvertedQueries"
                },
                "examples": {
                  "response": {
                    "value": "{ \"queryStrings\": [ \"type = page and creator != '847586:5371623a-12b4-1a11-ed01-a53542f02dd1' and space = DEV\"] }"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Returned if:\n\n* At least one of the queries cannot be converted. For example, the\nCQL has invalid operators or invalid keywords.\n* More than 100 CQL queries are included in the request."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CQLPersonalDataMigrationRequest"
              }
            }
          },
          "description": "The CQL queries to convert.",
          "required": true
        },
        "x-atlassian-connect-scope": "INACCESSIBLE"
      }
    },
    "/group": {
      "get": {
        "tags": [
          "/group"
        ],
        "summary": "Get groups",
        "description": "Returns all user groups. The returned groups are ordered alphabetically in\nascending order by group name.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.GroupResource.getGroups_get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned groups.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of groups to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested groups are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupArrayWithLinks"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to view\ngroups."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/group/{groupName}": {
      "get": {
        "tags": [
          "/group"
        ],
        "summary": "Get group",
        "description": "Returns a user group for a given group name.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.GroupResource.getGroup_get",
        "parameters": [
          {
            "name": "groupName",
            "description": "The name of the group. This is the same as the group name shown in\nthe Confluence administration console.",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested group is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Group"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to view\ngroups."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/group/{groupName}/member": {
      "get": {
        "tags": [
          "/group"
        ],
        "summary": "Get group members",
        "description": "Returns the users that are members of a group.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.GroupResource.getGroupMembers_get",
        "parameters": [
          {
            "name": "groupName",
            "in": "path",
            "description": "The name of the group to be queried for its members.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned users.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of users to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested users are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserArrayWithLinks"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to view users."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/longtask": {
      "get": {
        "tags": [
          "/longtask"
        ],
        "summary": "Get long-running tasks",
        "description": "Returns information about all active long-running tasks (e.g. space export),\nsuch as how long each task has been running and the percentage of each task\nthat has completed.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.LongTaskResource.getTasks_get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned tasks.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of tasks to return per page. Note, this may be\nrestricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested tasks are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LongTaskStatusArray"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the calling user is not logged in to Confluence."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/longtask/{id}": {
      "get": {
        "tags": [
          "/longtask"
        ],
        "summary": "Get long-running task",
        "description": "Returns information about an active long-running task (e.g. space export),\nsuch as how long it has been running and the percentage of the task that\nhas completed.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.LongTaskResource.getTask_get",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The ID of the task.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested task is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LongTaskStatusWithLinks"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the calling user is not logged in to Confluence."
          },
          "404": {
            "description": "Returned if;\n\n- There is no task with the given ID.\n- The calling user does not have permission to view the task."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/relation/{relationName}/from/{sourceType}/{sourceKey}/to/{targetType}": {
      "get": {
        "tags": [
          "/relation"
        ],
        "summary": "Find target entities related to a source entity",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns all target entities that have a particular relationship to the\nsource entity. Note, relationships are one way.\n\nFor example, the following method finds all content that the current user\nhas an 'ignore' relationship with:\n`GET https://your-domain.atlassian.net/wiki/rest/api/relation/ignore/from/user/current/to/content`\nNote, 'ignore' is an example custom relationship type.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view both the target entity and source entity.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.RelationResource.findTargetFromSource_get",
        "parameters": [
          {
            "name": "relationName",
            "in": "path",
            "description": "The name of the relationship. This method supports relationships created via\n[Create relationship](#api-relation-relationName-from-sourceType-sourceKey-to-targetType-targetKey-put).\nNote, this method does not support 'favourite' relationships.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceType",
            "in": "path",
            "description": "The source entity type of the relationship.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "user",
                "content",
                "space"
              ]
            }
          },
          {
            "name": "sourceKey",
            "in": "path",
            "description": "The identifier for the source entity:\n\n- If `sourceType` is `user`, then specify either `current` (logged-in user), the user key of the user, or\nthe account ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n- If `sourceType` is 'content', then specify the content ID.\n- If `sourceType` is 'space', then specify the space key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "targetType",
            "in": "path",
            "description": "The target entity type of the relationship.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "user",
                "content",
                "space"
              ]
            }
          },
          {
            "name": "sourceStatus",
            "in": "query",
            "description": "The status of the source. This parameter is only used when the\n`sourceType` is 'content'.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "targetStatus",
            "in": "query",
            "description": "The status of the target. This parameter is only used when the\n`targetType` is 'content'.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceVersion",
            "in": "query",
            "description": "The version of the source. This parameter is only used when the\n`sourceType` is 'content' and the `sourceStatus` is 'historical'.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "targetVersion",
            "in": "query",
            "description": "The version of the target. This parameter is only used when the\n`targetType` is 'content' and the `targetStatus` is 'historical'.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the response\nobject to expand.\n\n- `relationData` returns information about the relationship, such as\nwho created it and when it was created.\n- `source` returns the source entity.\n- `target` returns the target entity.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "relationData",
                  "source",
                  "target"
                ]
              }
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned relationships.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of relationships to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested relationships are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RelationArray"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the user does not have permission to view the\nrelationships."
          },
          "404": {
            "description": "Returned if the target entity does not exist."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/relation/{relationName}/from/{sourceType}/{sourceKey}/to/{targetType}/{targetKey}": {
      "get": {
        "tags": [
          "/relation"
        ],
        "summary": "Find relationship from source to target",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Find whether a particular type of relationship exists from a source\nentity to a target entity. Note, relationships are one way.\n\nFor example, you can use this method to find whether the current user has\nselected a particular page as a favorite (i.e. 'save for later'):\n`GET https://your-domain.atlassian.net/wiki/rest/api/relation/favourite/from/user/current/to/content/123`\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view both the target entity and source entity.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.RelationResource.GetRelationship_get",
        "parameters": [
          {
            "name": "relationName",
            "in": "path",
            "description": "The name of the relationship. This method supports the 'favourite'\n(i.e. 'save for later') relationship as well as any other relationship\ntypes created via [Create relationship](#api-relation-relationName-from-sourceType-sourceKey-to-targetType-targetKey-put).",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceType",
            "in": "path",
            "description": "The source entity type of the relationship. This must be 'user', if\nthe `relationName` is 'favourite'.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "user",
                "content",
                "space"
              ]
            }
          },
          {
            "name": "sourceKey",
            "in": "path",
            "description": "- The identifier for the source entity:\n\n- If `sourceType` is `user`, then specify either `current` (logged-in user), the user key of the user, or\nthe account ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n- If `sourceType` is 'content', then specify the content ID.\n- If `sourceType` is 'space', then specify the space key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "targetType",
            "in": "path",
            "description": "The target entity type of the relationship. This must be 'space' or\n'content', if the `relationName` is 'favourite'.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "user",
                "content",
                "space"
              ]
            }
          },
          {
            "name": "targetKey",
            "in": "path",
            "description": "The identifier for the target entity:\n\n- If `targetType` is `user`, then specify either `current` (logged-in user), the user key of the user, or\nthe account ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n- If `targetType` is 'content', then specify the content ID.\n- If `targetType` is 'space', then specify the space key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceStatus",
            "in": "query",
            "description": "The status of the source. This parameter is only used when the\n`sourceType` is 'content'.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "targetStatus",
            "in": "query",
            "description": "The status of the target. This parameter is only used when the\n`targetType` is 'content'.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceVersion",
            "in": "query",
            "description": "The version of the source. This parameter is only used when the\n`sourceType` is 'content' and the `sourceStatus` is 'historical'.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "targetVersion",
            "in": "query",
            "description": "The version of the target. This parameter is only used when the\n`targetType` is 'content' and the `targetStatus` is 'historical'.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the response\nobject to expand.\n\n- `relationData` returns information about the relationship, such as\nwho created it and when it was created.\n- `source` returns the source entity.\n- `target` returns the target entity.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "relationData",
                  "source",
                  "target"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the relationship exists.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Relation"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the user does not have permission to view the\nrelationship."
          },
          "404": {
            "description": "Returned if the relationship does not exist."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "put": {
        "tags": [
          "/relation"
        ],
        "summary": "Create relationship",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Creates a relationship between two entities (user, space, content). The\n'favourite' relationship is supported by default, but you can use this method\nto create any type of relationship between two entities.\n\nFor example, the following method creates a 'sibling' relationship between\ntwo pieces of content:\n`GET https://your-domain.atlassian.net/wiki/rest/api/relation/sibling/from/content/123/to/content/456`\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.RelationResource.createRelationship_put",
        "parameters": [
          {
            "name": "relationName",
            "in": "path",
            "description": "The name of the relationship. This method supports the 'favourite'\n(i.e. 'save for later') relationship. You can also specify any other\nvalue for this parameter to create a custom relationship type.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceType",
            "in": "path",
            "description": "The source entity type of the relationship. This must be 'user', if\nthe `relationName` is 'favourite'.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "user",
                "content",
                "space"
              ]
            }
          },
          {
            "name": "sourceKey",
            "in": "path",
            "description": "- The identifier for the source entity:\n\n- If `sourceType` is 'user', then specify either 'current' (logged-in\n  user) or the user key.\n- If `sourceType` is 'content', then specify the content ID.\n- If `sourceType` is 'space', then specify the space key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "targetType",
            "in": "path",
            "description": "The target entity type of the relationship. This must be 'space' or\n'content', if the `relationName` is 'favourite'.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "user",
                "content",
                "space"
              ]
            }
          },
          {
            "name": "targetKey",
            "in": "path",
            "description": "- The identifier for the target entity:\n\n- If `sourceType` is 'user', then specify either 'current' (logged-in\n  user) or the user key.\n- If `sourceType` is 'content', then specify the content ID.\n- If `sourceType` is 'space', then specify the space key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceStatus",
            "in": "query",
            "description": "The status of the source. This parameter is only used when the\n`sourceType` is 'content'.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "targetStatus",
            "in": "query",
            "description": "The status of the target. This parameter is only used when the\n`targetType` is 'content'.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceVersion",
            "in": "query",
            "description": "The version of the source. This parameter is only used when the\n`sourceType` is 'content' and the `sourceStatus` is 'historical'.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "targetVersion",
            "in": "query",
            "description": "The version of the target. This parameter is only used when the\n`targetType` is 'content' and the `targetStatus` is 'historical'.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the relationship is created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Relation"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the user does not have permission to use Confluence."
          },
          "404": {
            "description": "Returned if the user, space or content could not be found."
          }
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "delete": {
        "tags": [
          "/relation"
        ],
        "summary": "Delete",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Deletes a relationship between two entities (user, space, content).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).\nFor favourite relationships, the current user can only delete their own\nfavourite relationships. A space administrator can delete favourite\nrelationships for any user.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.RelationResource.delete_delete",
        "parameters": [
          {
            "name": "relationName",
            "in": "path",
            "description": "The name of the relationship.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceType",
            "in": "path",
            "description": "The source entity type of the relationship. This must be 'user', if\nthe `relationName` is 'favourite'.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "user",
                "content",
                "space"
              ]
            }
          },
          {
            "name": "sourceKey",
            "in": "path",
            "description": "- The identifier for the source entity:\n\n- If `sourceType` is 'user', then specify either 'current' (logged-in\n  user) or the user key.\n- If `sourceType` is 'content', then specify the content ID.\n- If `sourceType` is 'space', then specify the space key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "targetType",
            "in": "path",
            "description": "The target entity type of the relationship. This must be 'space' or\n'content', if the `relationName` is 'favourite'.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "user",
                "content",
                "space"
              ]
            }
          },
          {
            "name": "targetKey",
            "in": "path",
            "description": "- The identifier for the target entity:\n\n- If `sourceType` is 'user', then specify either 'current' (logged-in\n  user) or the user key.\n- If `sourceType` is 'content', then specify the content ID.\n- If `sourceType` is 'space', then specify the space key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceStatus",
            "in": "query",
            "description": "The status of the source. This parameter is only used when the\n`sourceType` is 'content'.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "targetStatus",
            "in": "query",
            "description": "The status of the target. This parameter is only used when the\n`targetType` is 'content'.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceVersion",
            "in": "query",
            "description": "The version of the source. This parameter is only used when the\n`sourceType` is 'content' and the `sourceStatus` is 'historical'.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "targetVersion",
            "in": "query",
            "description": "The version of the target. This parameter is only used when the\n`targetType` is 'content' and the `targetStatus` is 'historical'.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Returned if the relationship is deleted or the relationship didn't\nexist."
          },
          "403": {
            "description": "Returned if the user does not have permission to delete the\nrelationship."
          },
          "404": {
            "description": "Returned if the user, space or content could not be found."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/relation/{relationName}/to/{targetType}/{targetKey}/from/{sourceType}": {
      "get": {
        "tags": [
          "/relation"
        ],
        "summary": "Find target entities related to a source entity",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns all target entities that have a particular relationship to the\nsource entity. Note, relationships are one way.\n\nFor example, the following method finds all users that have a 'collaborator'\nrelationship to a piece of content with an ID of '1234':\n`GET https://your-domain.atlassian.net/wiki/rest/api/relation/collaborator/to/content/1234/from/user`\nNote, 'collaborator' is an example custom relationship type.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view both the target entity and source entity.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.RelationResource.findSourcesForTarget_get",
        "parameters": [
          {
            "name": "relationName",
            "in": "path",
            "description": "The name of the relationship. This method supports relationships created via\n[Create relationship](#api-relation-relationName-from-sourceType-sourceKey-to-targetType-targetKey-put).\nNote, this method does not support 'favourite' relationships.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceType",
            "in": "path",
            "description": "The source entity type of the relationship.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "user",
                "content",
                "space"
              ]
            }
          },
          {
            "name": "targetType",
            "in": "path",
            "description": "The target entity type of the relationship.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "user",
                "content",
                "space"
              ]
            }
          },
          {
            "name": "targetKey",
            "in": "path",
            "description": "The identifier for the target entity:\n\n- If `targetType` is `user`, then specify either `current` (logged-in user), the user key of the user, or\nthe account ID of the user. Note that the user key has been deprecated in favor of the account ID for this parameter. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n- If `targetType` is 'content', then specify the content ID.\n- If `targetType` is 'space', then specify the space key.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceStatus",
            "in": "query",
            "description": "The status of the source. This parameter is only used when the\n`sourceType` is 'content'.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "targetStatus",
            "in": "query",
            "description": "The status of the target. This parameter is only used when the\n`targetType` is 'content'.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "sourceVersion",
            "in": "query",
            "description": "The version of the source. This parameter is only used when the\n`sourceType` is 'content' and the `sourceStatus` is 'historical'.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "targetVersion",
            "in": "query",
            "description": "The version of the target. This parameter is only used when the\n`targetType` is 'content' and the `targetStatus` is 'historical'.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the response\nobject to expand.\n\n- `relationData` returns information about the relationship, such as\nwho created it and when it was created.\n- `source` returns the source entity.\n- `target` returns the target entity.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "relationData",
                  "source",
                  "target"
                ]
              }
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned relationships.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of relationships to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested relationships are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RelationArray"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the user does not have permission to view the\nrelationship"
          },
          "404": {
            "description": "Returned if the target entity does not exist."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/search": {
      "get": {
        "tags": [
          "/search"
        ],
        "summary": "Search",
        "security": [
          {
            "oAuthDefinitions": [
              "search:confluence"
            ]
          }
        ],
        "description": "Searches for content using the\n[Confluence Query Language (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/)\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to view the entities. Note, only entities that the user has\npermission to view will be returned.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SearchResource.search_get",
        "parameters": [
          {
            "name": "cql",
            "in": "query",
            "description": "The CQL query to be used for the search. See\n[Advanced Searching using CQL](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/)\nfor instructions on how to build a CQL query.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "cqlcontext",
            "in": "query",
            "description": "The space, content, and content status to execute the search\nagainst.\n\n- `spaceKey` Key of the space to search against. Optional.\n- `contentId` ID of the content to search against. Optional. Must be\nin the space specified by `spaceKey`.\n- `contentStatuses` Content statuses to search against. Optional.\n\nSpecify these values in an object. For example,\n`cqlcontext={%22spaceKey%22:%22TEST%22, %22contentId%22:%22123%22}`",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned content.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of content objects to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 25
            }
          },
          {
            "name": "includeArchivedSpaces",
            "in": "query",
            "description": "Include content from archived spaces in the results.",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested results are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchPageResponseSearchResult"
                }
              }
            }
          },
          "400": {
            "description": "Returned if the CQL query cannot be parsed."
          },
          "403": {
            "description": "Returned if the calling user does not have permission to access\nConfluence."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/search/user": {
      "get": {
        "tags": [
          "/search/user"
        ],
        "summary": "Search",
        "description": "Searches for users using user-specific queries from the\n[Confluence Query Language (CQL)](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/).\n\nNote that some user fields may be set to null depending on the user's privacy settings.\nThese are: email, profilePicture, and displayName.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SearchResource.search_user_get",
        "parameters": [
          {
            "name": "cql",
            "in": "query",
            "description": "The CQL query to be used for the search. See\n[Advanced Searching using CQL](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/)\nfor instructions on how to build a CQL query.\n\nExample queries:\n          cql=type=user will return all users\n          cql=user=“1234” will return user with accountId “1234”\n          You can also use IN, NOT IN, != operators\n          cql=user IN (“12”, “34\") will return users with accountids “12” and “34”\n          cql=user.fullname~jo will return users with nickname/full name starting with “jo”\n          cql=user.accountid=“123” will return user with accountId “123”",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned users.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of user objects to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested results are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchPageResponseSearchResult"
                }
              }
            }
          },
          "400": {
            "description": "Returned if the CQL query cannot be parsed."
          },
          "403": {
            "description": "Returned if the calling user does not have permission to access\nConfluence."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/settings/lookandfeel": {
      "get": {
        "tags": [
          "/settings/lookandfeel"
        ],
        "summary": "Get look and feel settings",
        "security": [
          {
            "oAuthDefinitions": [
              "manage:confluence-configuration"
            ]
          }
        ],
        "description": "Returns the look and feel settings for the site or a single space. This\nincludes attributes such as the color scheme, padding, and border radius.\n\nThe look and feel settings for a space can be inherited from the global\nlook and feel settings or provided by a theme.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nNone",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.LookAndFeelResource.getLookAndFeelSettings_get",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "query",
            "description": "The key of the space for which the look and feel settings will be\nreturned. If this is not set, only the global look and feel settings\nare returned.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested look and feel settings are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LookAndFeelSettings"
                }
              }
            }
          },
          "400": {
            "description": "Returned if `spaceKey` is invalid."
          },
          "404": {
            "description": "Returned if there is no space with the given `spaceKey`."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/settings/lookandfeel/custom": {
      "post": {
        "tags": [
          "/settings/lookandfeel"
        ],
        "summary": "Update look and feel settings",
        "security": [
          {
            "oAuthDefinitions": [
              "manage:confluence-configuration"
            ]
          }
        ],
        "description": "Updates the look and feel settings for the site or for a single space.\nIf custom settings exist, they are updated. If no custom settings exist,\nthen a set of custom settings is created.\n\nNote, if a theme is selected for a space, the space look and feel settings\nare provided by the theme and cannot be overridden.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Admin' permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.LookAndFeelResource.updateLookAndFeelSettings_post",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "query",
            "description": "The key of the space for which the look and feel settings will be\nupdated. If this is not set, the global look and feel settings will\nbe updated.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the look and feel settings are updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LookAndFeelUpdated"
                }
              }
            }
          },
          "400": {
            "description": "Returned if;\n\n- The `spaceKey` is invalid\n- The request body contains invalid data."
          },
          "403": {
            "description": "Returned if the calling user doesn't have permission to edit the\nlook and feel settings."
          },
          "404": {
            "description": "Returned if there is no space with the given `spaceKey`."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LookAndFeel"
              }
            }
          },
          "description": "The updated settings. All values for the settings must be included,\nregardless of whether they are being changed.\n\nOne way to create the request body is to copy the settings from the\nresponse body of [Get look and feel settings](#api-settings-lookandfeel-get)\nand modify it as needed.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "delete": {
        "tags": [
          "/settings/lookandfeel"
        ],
        "summary": "Reset look and feel settings",
        "security": [
          {
            "oAuthDefinitions": [
              "manage:confluence-configuration"
            ]
          }
        ],
        "description": "Resets the custom look and feel settings for the site or a single space.\nThis changes the values of the custom settings to be the same as the\ndefault settings. It does not change which settings (default or custom)\nare selected. Note, the default space settings are inherited from the\ncurrent global settings.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Admin' permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.LookAndFeelResource.resetLookAndFeelSettings_delete",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "query",
            "description": "The key of the space for which the look and feel settings will be\nreset. If this is not set, the global look and feel settings will\nbe reset.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Returned if the look and feel settings have been reset."
          },
          "400": {
            "description": "Returned if `spaceKey` is invalid."
          },
          "403": {
            "description": "Returned if the calling user doesn't have permission to reset the\nlook and feel."
          },
          "404": {
            "description": "Returned if there is no space with the given `spaceKey`."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/settings/lookandfeel/selected": {
      "put": {
        "tags": [
          "/settings/lookandfeel"
        ],
        "summary": "Set look and feel settings",
        "security": [
          {
            "oAuthDefinitions": [
              "manage:confluence-configuration"
            ]
          }
        ],
        "description": "Sets the look and feel settings to either the default settings or the\ncustom settings, for the site or a single space. Note, the default\nspace settings are inherited from the current global settings.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Admin' permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.LookAndFeelResource.setLookAndFeelSettings_put",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "query",
            "description": "The key of the space for which the look and feel settings will be\nset. If this is not set, the global look and feel settings will be\nset.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the look and feel settings were set.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LookAndFeelSettings"
                }
              }
            }
          },
          "400": {
            "description": "Returned if;\n\n- The `spaceKey` is invalid.\n- The look and feel type is invalid."
          },
          "403": {
            "description": "Returned if the look and feel type is set to 'theme' but the\nspace/site doesn't have a theme assigned."
          },
          "404": {
            "description": "Returned if there is no space with the given `spaceKey`."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LookAndFeelType"
              }
            }
          },
          "description": "The look and feel settings to be set.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      }
    },
    "/settings/systemInfo": {
      "get": {
        "tags": [
          "/settings"
        ],
        "summary": "Get system info",
        "security": [
          {
            "oAuthDefinitions": [
              "manage:confluence-configuration"
            ]
          }
        ],
        "description": "Returns the system information for the Confluence Cloud tenant. This\ninformation is used by Atlassian.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SystemInfoResource.getSystemInfo_get",
        "responses": {
          "200": {
            "description": "Returned if the system information for the Confluence Cloud tenant\nis returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SystemInfoEntity"
                }
              }
            }
          },
          "403": {
            "description": "Returned when the user does not have permission to view the system\ninformation."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/settings/theme": {
      "get": {
        "tags": [
          "/settings/theme"
        ],
        "summary": "Get themes",
        "security": [
          {
            "oAuthDefinitions": [
              "manage:confluence-configuration"
            ]
          }
        ],
        "description": "Returns all themes, not including the default theme.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ThemeResource.getThemes_get",
        "parameters": [
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned themes.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of themes to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 100
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested themes are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ThemeArray"
                }
              }
            }
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/settings/theme/selected": {
      "get": {
        "tags": [
          "/settings/theme"
        ],
        "summary": "Get global theme",
        "security": [
          {
            "oAuthDefinitions": [
              "manage:confluence-configuration"
            ]
          }
        ],
        "description": "Returns the globally assigned theme.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ThemeResource.getGlobalTheme_get",
        "responses": {
          "200": {
            "description": "Returned if the global theme is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Theme"
                }
              }
            }
          },
          "404": {
            "description": "Returned if Confluence does not have a global theme assigned, i.e.\nthe default theme is used."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/settings/theme/{themeKey}": {
      "get": {
        "tags": [
          "/settings/theme"
        ],
        "summary": "Get theme",
        "security": [
          {
            "oAuthDefinitions": [
              "manage:confluence-configuration"
            ]
          }
        ],
        "description": "Returns a theme. This includes information about the theme name,\ndescription, and icon.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**: None",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.ThemeResource.getTheme_get",
        "parameters": [
          {
            "name": "themeKey",
            "in": "path",
            "description": "The key of the theme to be returned.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested theme is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Theme"
                }
              }
            }
          },
          "404": {
            "description": "Returned if there is no theme with the given key."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/space": {
      "get": {
        "tags": [
          "/space"
        ],
        "summary": "Get spaces",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-space.summary"
            ]
          }
        ],
        "description": "Returns all spaces. The returned spaces are ordered alphabetically in\nascending order by space key.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).\nNote, the returned list will only contain spaces that the current user\nhas permission to view.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpaceResource.getSpaces_get",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "query",
            "description": "The key of the space to be returned. To return multiple spaces,\nspecify this parameter multiple times with different values.",
            "required": false,
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "type",
            "in": "query",
            "description": "Filter the results to spaces based on their type.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "global",
                "personal"
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "description": "Filter the results to spaces based on their status.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "current",
                "archived"
              ]
            }
          },
          {
            "name": "label",
            "in": "query",
            "description": "Filter the results to spaces based on their label.",
            "required": false,
            "explode": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "favourite",
            "in": "query",
            "description": "Filter the results to the favourite spaces of the user specified by\n`favouriteUserKey`. Note, 'favourite' spaces are also\nknown as 'saved for later' spaces.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "favouriteUserKey",
            "in": "query",
            "description": "The userKey of the user, whose favourite spaces are used to filter\nthe results when using the `favourite` parameter.\n\nLeave blank for the current user. Use [Get user](#api-user-get) to\nget the userKey for a user.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/spaceExpand"
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned spaces.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of spaces to return per page. Note, this may be\nrestricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested spaces are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceArray"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "post": {
        "tags": [
          "/space"
        ],
        "summary": "Create space",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-space"
            ]
          }
        ],
        "description": "Creates a new space. Note, currently you cannot set space labels when\ncreating a space.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Create Space(s)' global permission.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpaceResource.createSpace_post",
        "responses": {
          "200": {
            "description": "Returned if the space is created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Space"
                }
              }
            }
          },
          "400": {
            "description": "Returned if any of the following is true:\n\n- The request is invalid.\n- The space already exists."
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "403": {
            "description": "Returned if the callig user does not have permission to create a space."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpaceCreate"
              }
            }
          },
          "description": "The space to be created.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      }
    },
    "/space/_private": {
      "post": {
        "tags": [
          "/space"
        ],
        "summary": "Create private space",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-space"
            ]
          }
        ],
        "description": "Creates a new space that is only visible to the creator. This method is\nthe same as the [Create space](#api-space-post) method with permissions\nset to the current user only. Note, currently you cannot set space\nlabels when creating a space.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Create Space(s)' global permission.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpaceResource.createPrivateSpace_post",
        "responses": {
          "200": {
            "description": "Returned if the space is created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Space"
                }
              }
            }
          },
          "400": {
            "description": "Returned if any of the following is true:\n\n- The request is invalid.\n- The space already exists."
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "403": {
            "description": "Returned if the user does not have permission to create a space."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpacePrivateCreate"
              }
            }
          },
          "description": "The space to be created.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      }
    },
    "/space/{spaceKey}": {
      "get": {
        "tags": [
          "/space"
        ],
        "summary": "Get space",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-space.summary"
            ]
          }
        ],
        "description": "Returns a space. This includes information like the name, description,\nand permissions, but not the content in the space.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'View' permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpaceResource.getSpace_get",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space to be returned.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "$ref": "#/components/parameters/spaceExpand"
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested space is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Space"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "404": {
            "description": "Returned if any of the following is true:\n\n- There is no space with the given key.\n- The calling user does not have permission to view the space."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "put": {
        "tags": [
          "/space"
        ],
        "summary": "Update space",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-space"
            ]
          }
        ],
        "description": "Updates the name, description, or homepage of a space.\n\n-   For security reasons, permissions cannot be updated via the API and\nmust be changed via the user interface instead.\n-   Currently you cannot set space labels when updating a space.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Admin' permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpaceResource.updateSpace_put",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space to update.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the space is updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Space"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "404": {
            "description": "Returned if any of the following is true:\n\n- There is no space with the given key\n- The calling user does not have permission to update the space."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpaceUpdate"
              }
            }
          },
          "description": "The updated space.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "delete": {
        "tags": [
          "/space"
        ],
        "summary": "Delete space",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-space"
            ]
          }
        ],
        "description": "Deletes a space. Note, the space will be deleted in a long running task.\nTherefore, the space may not be deleted yet when this method has\nreturned. Clients should poll the status link that is returned in the\nresponse until the task completes.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Admin' permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpaceResource.deleteSpace_delete",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space to delete.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "description": "Returns a pointer to the status of the space deletion task."
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "404": {
            "description": "Returned if any of the following is true:\n\n- There is no space with the given key.\n- The calling user does not have permission to delete the space."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/space/{spaceKey}/content": {
      "get": {
        "tags": [
          "/space"
        ],
        "summary": "Get content for space",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns all content in a space. The returned content is grouped by type\n(pages then blogposts), then ordered by content ID in ascending order.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'View' permission for the space. Note, the returned list will only\ncontain content that the current user has permission to view.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpaceResource.getContentForSpace_get",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space to be queried for its content.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Filter the results to content at the root level of the space or all content.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "root"
              ],
              "default": "all"
            }
          },
          {
            "$ref": "#/components/parameters/contentExpand"
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned content.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of content objects to return per page. Note, this\nmay be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested content is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentArray"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "404": {
            "description": "Returned if any of the following is true:\n\n- There is no space with the given key.\n- The calling user does not have permission to view the space."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/space/{spaceKey}/content/{type}": {
      "get": {
        "tags": [
          "/space"
        ],
        "summary": "Get content by type for space",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns all content of a given type, in a space. The returned content is\nordered by content ID in ascending order.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'View' permission for the space. Note, the returned list will only\ncontain content that the current user has permission to view.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpaceResource.getContentByTypeForSpace_get",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space to be queried for its content.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "type",
            "in": "path",
            "description": "The type of content to return.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "page",
                "blogpost"
              ]
            }
          },
          {
            "name": "depth",
            "in": "query",
            "description": "Filter the results to content at the root level of the space or all\ncontent.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "root"
              ],
              "default": "all"
            }
          },
          {
            "$ref": "#/components/parameters/contentExpand"
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned content.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of content objects to return per page. Note, this\nmay be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 25
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested content is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentArray"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "404": {
            "description": "Returned if any of the following is true:\n\n- There is no space with the given key.\n- The calling user does not have permission to view the space."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/space/{spaceKey}/property": {
      "get": {
        "tags": [
          "/space/{spaceKey}/property"
        ],
        "summary": "Get space properties",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-props"
            ]
          }
        ],
        "description": "Returns all properties for the given space. Space properties are a key-value storage associated with a space.\n\n**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘View’ permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpacePropertyResource.getSpaceProperties_get",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space to be queried for its properties.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the space\nproperty to expand. By default, the `version` object is expanded.\n\n- `version` returns information about the version of the content.\n- `space` returns the space that the properties are in.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "version",
                  "space"
                ]
              }
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned objects.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of properties to return per page. Note, this may be\nrestricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested space properties are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpacePropertyArray"
                }
              }
            }
          },
          "404": {
            "description": "Returned if any of the following is true:\n\n- There is no space with the given key.\n- The calling user does not have permission to view the space."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "post": {
        "tags": [
          "/space/{spaceKey}/property"
        ],
        "summary": "Create space property",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-props"
            ]
          }
        ],
        "description": "Creates a new space property.\n\n**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**:\n‘Admin’ permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpacePropertyResource.createSpaceProperty_post",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space that the property will be created in.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the space property is created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceProperty"
                }
              }
            }
          },
          "400": {
            "description": "Returned if any of the following is true:\n\n- The space already has a value with the given key.\n- No property value was provided."
          },
          "403": {
            "description": "Returned if the user does not have 'Admin' permission for the space."
          },
          "413": {
            "description": "Returned if the value for the property is too long."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpacePropertyCreate"
              }
            }
          },
          "description": "The space property to be created.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      }
    },
    "/space/{spaceKey}/property/{key}": {
      "get": {
        "tags": [
          "/space/{spaceKey}/property"
        ],
        "summary": "Get space property",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-props"
            ]
          }
        ],
        "description": "Returns a space property.\n\n**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘View’ permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpacePropertyResource.getSpaceProperty_get",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space that the property is in.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "description": "The key of the space property.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the space\nproperty to expand. By default, the `version` object is expanded.\n\n- `version` returns information about the version of the content.\n- `space` returns the space that the properties are in.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "version",
                  "space"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested space property is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceProperty"
                }
              }
            }
          },
          "404": {
            "description": "Returned if any of the following is true:\n\n- There is no space with the given key.\n- There is no property with the given key.\n- The calling user does not have permission to view the space."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "post": {
        "tags": [
          "/space/{spaceKey}/property"
        ],
        "summary": "Create space property for key",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-props"
            ]
          }
        ],
        "description": "Creates a new space property. This is the same as `POST\n/space/{spaceKey}/property` but the key for the property is passed as a\npath parameter, rather than in the request body.\n\n**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**:\n‘Admin’ permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpacePropertyResource.createSpacePropertyForKey_post",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space that the property will be created in.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "description": "The key of the property to be created.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the space property is created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceProperty"
                }
              }
            }
          },
          "400": {
            "description": "Returned if any of the following is true:\n\n- The space already has a value with the given key.\n- No property value was provided."
          },
          "403": {
            "description": "Returned if the user does not have the 'Admin' permission for the\nspace."
          },
          "413": {
            "description": "Returned if the value for the property is too long."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpacePropertyCreateNoKey"
              }
            }
          },
          "description": "The space property to be created.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "put": {
        "tags": [
          "/space/{spaceKey}/property"
        ],
        "summary": "Update space property",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-props"
            ]
          }
        ],
        "description": "Updates a space property. Note, you cannot update the key of a space\nproperty, only the value.\n\n**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**:\n‘Admin’ permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpacePropertyResource.updateSpaceProperty_put",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space that the property is in.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "description": "The key of the property to be updated.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the space property is updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceProperty"
                }
              }
            }
          },
          "400": {
            "description": "Returned if any of the following is true:\n\n- The given property has a different spaceKey to the one in the path.\n- The property has a different key to the one in the path."
          },
          "403": {
            "description": "Returned if the user does not have permission to edit the space with\nthe given spaceKey"
          },
          "404": {
            "description": "Returned if any of the following is true:\n\n- There is no space with the given spaceKey\n- There is no property with the given key.\n- The calling user does not have permission to view the space."
          },
          "409": {
            "description": "Returned if the given version is does not match the expected target\nversion of the updated property"
          },
          "413": {
            "description": "Returned if the value of the property is too long."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpacePropertyUpdate"
              }
            }
          },
          "description": "The space property being updated.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "delete": {
        "tags": [
          "/space/{spaceKey}/property"
        ],
        "summary": "Delete space property",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-props"
            ]
          }
        ],
        "description": "Deletes a space property.\n\n**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**:\n‘Admin’ permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpacePropertyResource.deleteSpaceProperty_delete",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space that the property is in.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "path",
            "description": "The key of the property to be deleted.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Returned if the space property is deleted."
          },
          "404": {
            "description": "Returned if any of the following is true:\n\n- There is no space with the given spaceKey\n- There is no property with the given key.\n- The calling user does not have permission to view the space."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/space/{spaceKey}/settings": {
      "get": {
        "tags": [
          "/space"
        ],
        "summary": "Get space settings",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-space.summary"
            ]
          }
        ],
        "description": "Returns the settings of a space. Currently only the\n`routeOverrideEnabled` setting can be returned.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'View' permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpaceResource.getSpaceSettings_get",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space to be queried for its settings.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the space settings are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceSettings"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "404": {
            "description": "Returned if;\n\n- There is no space with the given key.\n- The calling user does not have permission to view the space."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "put": {
        "tags": [
          "/space"
        ],
        "summary": "Update space settings",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-space"
            ]
          }
        ],
        "description": "Updates the settings for a space. Currently only the\n`routeOverrideEnabled` setting can be updated.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Admin' permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpaceResource.updateSpaceSettings_put",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space whose settings will be updated.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if space settings are updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceSettings"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "404": {
            "description": "Returned if;\n\n- There is no space with the given key.\n- The calling user does not have permission to update the space."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpaceSettingsUpdate"
              }
            }
          },
          "description": "The space settings to update.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      }
    },
    "/space/{spaceKey}/theme": {
      "get": {
        "tags": [
          "/space/{spaceKey}/theme"
        ],
        "summary": "Get space theme",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-space.summary"
            ]
          }
        ],
        "description": "Returns the theme selected for a space, if one is set. If no space\ntheme is set, this means that the space is inheriting the global look\nand feel settings.\n\n**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘View’ permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpaceThemeResource.getSpaceTheme_get",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space to be queried for its theme.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested theme is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Theme"
                }
              }
            }
          },
          "404": {
            "description": "Returned if any of the following is true:\n\n- There is no space with the given key.\n- The space does not have a theme assigned to it."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "put": {
        "tags": [
          "/space/{spaceKey}/theme"
        ],
        "summary": "Set space theme",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-space"
            ]
          }
        ],
        "description": "Sets the theme for a space. Note, if you want to reset the space theme to\nthe default Confluence theme, use the 'Reset space theme' method instead\nof this method.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Admin' permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpaceThemeResource.setSpaceTheme_put",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space to set the theme for.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the theme was set for the space.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Theme"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the theme key is invalid."
          },
          "404": {
            "description": "Returned if there is no space with the given key."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ThemeUpdate"
              }
            }
          },
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "delete": {
        "tags": [
          "/space/{spaceKey}/theme"
        ],
        "summary": "Reset space theme",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-space"
            ]
          }
        ],
        "description": "Resets the space theme. This means that the space will inherit the\nglobal look and feel settings\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Admin' permission for the space.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpaceThemeResource.resetSpaceTheme_delete",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space to reset the theme for.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Returned if the theme was reset for the space."
          },
          "404": {
            "description": "Returned if there is no space with the given key."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/space/{spaceKey}/watch": {
      "get": {
        "tags": [
          "/space/{spaceKey}/watch"
        ],
        "summary": "Returns a list of watchers of a space",
        "description": "Returns a list of watchers of a space",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.SpaceResource.getWatchersForSpace_get",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space to get watchers.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The start point of the collection to return.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The limit of the number of items to return, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if watchers list is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpaceWatchArray"
                }
              }
            }
          },
          "404": {
            "description": "Returned if there is no space with the given key"
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/template": {
      "post": {
        "tags": [
          "/template"
        ],
        "summary": "Create content template",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Creates a new content template. Note, blueprint templates cannot be created via the REST API.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Admin' permission for the space to create a space template or 'Confluence Administrator'\nglobal permission to create a global template.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.TemplateResource.createContentTemplate_post",
        "responses": {
          "200": {
            "description": "Returned if the template is created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentTemplate"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to create the\ntemplate."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentTemplateCreate"
              }
            }
          },
          "description": "The content template to be created.\nThe content body must be in 'storage' format.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "put": {
        "tags": [
          "/template"
        ],
        "summary": "Update content template",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Updates a content template. Note, blueprint templates cannot be updated\nvia the REST API.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Admin' permission for the space to create a space template or 'Confluence Administrator'\nglobal permission to create a global template.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.TemplateResource.updateContentTemplate_put",
        "responses": {
          "200": {
            "description": "Returned if the template is updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentTemplate"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to update the\ntemplate."
          }
        },
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContentTemplateUpdate"
              }
            }
          },
          "description": "The updated content template.",
          "required": true
        },
        "x-atlassian-connect-scope": "WRITE"
      }
    },
    "/template/blueprint": {
      "get": {
        "tags": [
          "/template"
        ],
        "summary": "Get blueprint templates",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns all templates provided by blueprints. Use this method to retrieve\nall global blueprint templates or all blueprint templates in a space.\n\nNote, all global blueprints are inherited by each space. Space blueprints\ncan be customised without affecting the global blueprints.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.TemplateResource.getBlueprintTemplates_get",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "query",
            "description": "The key of the space to be queried for templates. If the `spaceKey`\nis not specified, global blueprint templates will be returned.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned templates.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of templates to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 25
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the template\nto expand.\n\n- `body` returns the content of the template in storage format.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "body"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested templates are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlueprintTemplateArray"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to view\nblueprint templates."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/template/page": {
      "get": {
        "tags": [
          "/template"
        ],
        "summary": "Get content templates",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns all content templates. Use this method to retrieve all global\ncontent templates or all content templates in a space.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Admin' permission for the space to view space templates and 'Confluence\nAdministrator' global permission to view global templates.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.TemplateResource.getContentTemplates_get",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "query",
            "description": "The key of the space to be queried for templates. If the `spaceKey`\nis not specified, global templates will be returned.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned templates.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of templates to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 25
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the template\nto expand.\n\n- `body` returns the content of the template in storage format.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "body"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested templates are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentTemplateArray"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to view the\ncontent templates."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/template/{contentTemplateId}": {
      "get": {
        "tags": [
          "/template"
        ],
        "summary": "Get content template",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns a content template. This includes information about template,\nlike the name, the space or blueprint that the template is in, the body\nof the template, and more.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Admin' permission for the space to view space templates and 'Confluence\nAdministrator' global permission to view global templates.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.TemplateResource.getContentTemplate_get",
        "parameters": [
          {
            "name": "contentTemplateId",
            "description": "The ID of the content template to be returned.",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested template is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContentTemplate"
                }
              }
            }
          },
          "403": {
            "description": "Returned if;\n\n- There is no template with the given ID.\n- The calling user does not have permission to view the template."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "delete": {
        "tags": [
          "/template"
        ],
        "summary": "Remove template",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Deletes a template. This results in different actions depending on the\ntype of template:\n\n- If the template is a content template, it is deleted.\n- If the template is a modified space-level blueprint template, it reverts\nto the template inherited from the global-level blueprint template.\n- If the template is a modified global-level blueprint template, it reverts\nto the default global-level blueprint template.\n\n Note, unmodified blueprint templates cannot be deleted.",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.TemplateResource.removeTemplate_delete",
        "parameters": [
          {
            "name": "contentTemplateId",
            "in": "path",
            "description": "The ID of the template to be deleted.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Returned if the template has been successfully been deleted."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/user": {
      "get": {
        "tags": [
          "/user"
        ],
        "summary": "Get user",
        "description": "Returns a user. This includes information about the user, like the\ndisplay name, userKey, account ID, profile picture, and more.\n\nThe `username`, `key`, or `accountId` parameter must be specified, in\norder to identify the user.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserResource.getUser_get",
        "parameters": [
          {
            "name": "key",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe userKey of the user to be returned. Required, unless the\n`username` or `accountId` is specified. The `key` uniquely identifies\na user in a Confluence instance and does not change.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "username",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe username of the user to be returned. Required, unless the `key`\nor `accountId` is specified. The `username` uniquely identifies a\nuser in a Confluence instance but can change if the user is renamed.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "description": "The account ID of the user, which uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`. Required, unless `username` or `userKey` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the user to\nexpand.\n\n  - `operations` returns the operations that the user is allowed to do.\n  - `details.personal` returns the 'Personal' details in the user's profile, like the 'Email' and 'Phone'.\n  Note that these fields have been deprecated due to privacy changes. See the\n  [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\n  for details.\n  - `details.business` returns the 'Company' details in the user's profile, like the 'Position' and 'Department'.\n  Note that these fields have been deprecated due to privacy changes. See the\n  [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\n  for details.\n  - personalSpace returns the user's personal space, if it exists.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "operations",
                  "details.personal",
                  "details.business",
                  "personalSpace"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested user is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "403": {
            "description": "Returned if the calling user does not have permission to view users."
          },
          "404": {
            "description": "Returned if a user with the given username, userkey, or accountId\ndoes not exist."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/user/anonymous": {
      "get": {
        "tags": [
          "/user"
        ],
        "summary": "Get anonymous user",
        "description": "Returns information about how anonymous users are represented, like the\nprofile picture and display name.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserResource.getAnonymousUser_get",
        "parameters": [
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the user to\nexpand.\n\n  - `operations` returns the operations that the user is allowed to do.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "operations"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the anonymous user representation is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserAnonymous"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to use\nConfluence."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/user/current": {
      "get": {
        "tags": [
          "/user"
        ],
        "summary": "Get current user",
        "description": "Returns the currently logged-in user. This includes information about\nthe user, like the display name, userKey, account ID, profile picture,\nand more.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserResource.getCurrentUser_get",
        "parameters": [
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the user to\nexpand.\n\n  - `operations` returns the operations that the user is allowed to do.\n  - `details.personal` returns the 'Personal' details in the user's profile, like the 'Email' and 'Phone'.\n  Note that these fields have been deprecated due to privacy changes. See the\n  [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\n  for details.\n  - `details.business` returns the 'Company' details in the user's profile, like the 'Position' and 'Department'.\n  Note that these fields have been deprecated due to privacy changes. See the\n  [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\n  for details.\n  - personalSpace returns the user's personal space, if it exists.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "operations",
                  "details.personal",
                  "details.business",
                  "personalSpace"
                ]
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the current user is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/User"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to use\nConfluence."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/user/memberof": {
      "get": {
        "tags": [
          "/user"
        ],
        "summary": "Get group memberships for user",
        "description": "Returns the groups that a user is a member of.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserResource.getGroupMembershipsForUser_get",
        "parameters": [
          {
            "name": "key",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe userKey of the user. Required, unless the `username` or `accountId` is specified. The `key` uniquely identifies\na user in a Confluence instance and does not change.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "username",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe username of the user. Required, unless the `key` or `accountId` is specified. The `username` uniquely identifies a\nuser in a Confluence instance but can change if the user is renamed.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "description": "The account ID of the user, which uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`. Required, unless `username` or `userKey` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The starting index of the returned groups.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of groups to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested groups are returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GroupArray"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to use\nConfluence."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    },
    "/user/bulk": {
      "get": {
        "tags": [
          "/user"
        ],
        "summary": "Get multiple users using ids",
        "description": "Returns user details for the ids provided in request.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserResource.getBulkUserLookup",
        "parameters": [
          {
            "name": "accountId",
            "in": "query",
            "description": "A list of accountId's of users to be returned.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A multi-value parameter indicating which properties of the user to\nexpand.\n\n  - `operations` returns the operations that the user is allowed to do.\n  - `details.personal` returns the 'Personal' details in the user's profile, like the 'Email' and 'Phone'.\n  Note that these fields have been deprecated due to privacy changes. See the\n  [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\n  for details.\n  - `details.business` returns the 'Company' details in the user's profile, like the 'Position' and 'Department'.\n  Note that these fields have been deprecated due to privacy changes. See the\n  [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\n  for details.\n  - personalSpace returns the user's personal space, if it exists.",
            "required": false,
            "style": "form",
            "schema": {
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "operations",
                  "details.personal",
                  "details.business",
                  "personalSpace"
                ]
              }
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of results returned.\nCurrently API returns 200 results max.\nIf more that 200 ids are passed first 200 will be returned.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 1,
              "maximum": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if, the list of users is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BulkUserLookupArray"
                }
              }
            }
          },
          "403": {
            "description": "Returned if the calling user does not have permission to use\nConfluence."
          }
        },
        "x-atlassian-connect-scope": "INACCESSIBLE"
      }
    },
    "/user/watch/content/{contentId}": {
      "get": {
        "tags": [
          "/user"
        ],
        "summary": "Get content watch status",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns whether a user is watching a piece of content. Choose the user by\ndoing one of the following:\n\n- Specify a user via a query parameter: Use the `username`, `key`, or `accountId` to identify the user.\nNote that `username` and `key` have been deprecated in favor of `accountId`. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n- Do not specify a user: The currently logged-in user will be used.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission if specifying a user, otherwise\npermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserWatchResource.getContentWatchStatus_get",
        "parameters": [
          {
            "name": "contentId",
            "in": "path",
            "description": "The ID of the content to be queried for whether the specified user is\nwatching it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `key` of the user to be queried for whether they are watching the\ncontent. Required, unless the `username` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "username",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `username` of the user to be queried for whether they are watching\nthe content. Required, unless the `key` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "description": "The `accountId` of the user to be queried for whether they are watching the content. The accountId uniquely\nidentifies the user across all Atlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.\nRequired, unless `username` or `userKey` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested watch status is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserWatch"
                }
              }
            }
          },
          "403": {
            "description": "Returned if;\n\n- The calling user does not have permission to view the\ncontent.\n- A user is specified via a query parameter and the calling user is\nnot a Confluence administrator.\n- No content exists for the specified `contentId`."
          },
          "404": {
            "description": "Returned if no `contentId` is specified."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "post": {
        "tags": [
          "/user"
        ],
        "summary": "Add content watcher",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Adds a user as a watcher to a piece of content. Choose the user by doing\none of the following:\n\n- Specify a user via a query parameter: Use the `username`, `key`, or `accountId` to identify the user.\nNote that `username` and `key` have been deprecated in favor of `accountId`. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n- Do not specify a user: The currently logged-in user will be used.\n\nNote, you must add the `X-Atlassian-Token: no-check` header when making a\nrequest, as this operation has XSRF protection.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission if specifying a user, otherwise\npermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserWatchResource.addContentWatcher_post",
        "parameters": [
          {
            "name": "contentId",
            "in": "path",
            "description": "The ID of the content to add the watcher to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `key` of the user to be added as a watcher. Required, unless the `username` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "username",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `username` of the user to be added as a watcher. Required, unless the `key` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "description": "The `accountId` of the user to be added as a watcher. The accountId uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`. Required, unless `username` or `userKey` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Returned if the watcher was successfully created. No response body is\nreturned."
          },
          "403": {
            "description": "Returned if;\n\n- The `X-Atlassian-Token: no-check` header is not specified.\n- The calling user does not have permission to view the\ncontent.\n- A user is specified via a query parameter and the calling user is\nnot a Confluence administrator.\n- No content exists for the specified `contentId`."
          },
          "404": {
            "description": "Returned if no `contentId` is specified."
          }
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "delete": {
        "tags": [
          "/user"
        ],
        "summary": "Remove content watcher",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Removes a user as a watcher from a piece of content. Choose the user by\ndoing one of the following:\n\n- Specify a user via a query parameter: Use the `username`, `key`, or `accountId` to identify the user.\nNote that `username` and `key` have been deprecated in favor of `accountId`. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n- Do not specify a user: The currently logged-in user will be used.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission if specifying a user, otherwise\npermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserWatchResource.removeContentWatcher_delete",
        "parameters": [
          {
            "name": "contentId",
            "in": "path",
            "description": "The ID of the content to remove the watcher from.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `key` of the user to be removed as a watcher. Required, unless the `username` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "username",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `username` of the user to be removed as a watcher. Required, unless the `key` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "description": "The `accountId` of the user to be removed as a watcher. The accountId uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`. Required, unless `username` or `userKey` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Returned if the watcher was successfully deleted. No response body is\nreturned."
          },
          "403": {
            "description": "Returned if;\n\n- The `X-Atlassian-Token: no-check` header is not specified.\n- The calling user does not have permission to view the\ncontent.\n- A user is specified via a query parameter and the calling user is\nnot a Confluence administrator.\n- No content exists for the specified `contentId`."
          },
          "404": {
            "description": "Returned if no `contentId` is specified."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/user/watch/label/{labelName}": {
      "get": {
        "tags": [
          "/user"
        ],
        "summary": "Get label watch status",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns whether a user is watching a label. Choose the user by doing one\nof the following:\n\n- Specify a user via a query parameter: Use the `username`, `key`, or `accountId` to identify the user.\nNote that `username` and `key` have been deprecated in favor of `accountId`. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n- Do not specify a user: The currently logged-in user will be used.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission if specifying a user, otherwise\npermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserWatchResource.isWatchingLabel_get",
        "parameters": [
          {
            "name": "labelName",
            "in": "path",
            "description": "The name of the label to be queried for whether the specified user is\nwatching it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `key` of the user to be queried for whether they are watching the label. Required, unless the `username` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "username",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `username` of the user to be queried for whether they are watching the label. Required, unless the `key` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "description": "The `accountId` of the user to be queried for whether they are watching the label. The accountId uniquely identifies\nthe user across all Atlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.\nRequired, unless `username` or `userKey` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested watch status is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserWatch"
                }
              }
            }
          },
          "403": {
            "description": "Returned if;\n\n- A user is specified via a query parameter and the calling user is\nnot a Confluence administrator.\n- No label exists for the specified `labelName`."
          },
          "404": {
            "description": "Returned if no `labelName` is specified."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "post": {
        "tags": [
          "/user"
        ],
        "summary": "Add label watcher",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Adds a user as a watcher to a label. Choose the user by doing one of the\nfollowing:\n\n- Specify a user via a query parameter: Use the `username`, `key`, or `accountId` to identify the user.\nNote that `username` and `key` have been deprecated in favor of `accountId`. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n- Do not specify a user: The currently logged-in user will be used.\n\nNote, you must add the `X-Atlassian-Token: no-check` header when making a\nrequest, as this operation has XSRF protection.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission if specifying a user, otherwise\npermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserWatchResource.addLabelWatcher_post",
        "parameters": [
          {
            "name": "labelName",
            "in": "path",
            "description": "The name of the label to add the watcher to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `key` of the user to be added as a watcher. Required, unless the `username` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "username",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `username` of the user to be added as a watcher. Required, unless the `key` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "description": "The `accountId` of the user to be added as a watcher. The accountId uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`. Required, unless `username` or `userKey` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Returned if the watcher was successfully created. No response body is\nreturned."
          },
          "403": {
            "description": "Returned if;\n\n- The `X-Atlassian-Token: no-check` header is not specified.\n- A user is specified via a query parameter and the calling user is\nnot a Confluence administrator.\n- No label exists for the specified `labelName`."
          },
          "404": {
            "description": "Returned if no `labelName` is specified."
          }
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "delete": {
        "tags": [
          "/user"
        ],
        "summary": "Remove label watcher",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Removes a user as a watcher from a label. Choose the user by doing one of\nthe following:\n\n- Specify a user via a query parameter: Use the `username`, `key`, or `accountId` to identify the user.\nNote that `username` and `key` have been deprecated in favor of `accountId`. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n- Do not specify a user: The currently logged-in user will be used.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission if specifying a user, otherwise\npermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserWatchResource.removeLabelWatcher_delete",
        "parameters": [
          {
            "name": "labelName",
            "in": "path",
            "description": "The name of the label to remove the watcher from.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `key` of the user to be removed as a watcher. Required, unless the `username` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "username",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `username` of the user to be removed as a watcher. Required, unless the `key` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "description": "The `accountId` of the user to be removed as a watcher. The accountId uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`. Required, unless `username` or `userKey` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Returned if the watcher was successfully deleted. No response body is\nreturned."
          },
          "403": {
            "description": "Returned if;\n\n- The `X-Atlassian-Token: no-check` header is not specified.\n- A user is specified via a query parameter and the calling user is\nnot a Confluence administrator.\n- No label exists for the specified `labelName`."
          },
          "404": {
            "description": "Returned if no `labelName` is specified."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/user/watch/space/{spaceKey}": {
      "get": {
        "tags": [
          "/user"
        ],
        "summary": "Get space watch status",
        "security": [
          {
            "oAuthDefinitions": [
              "read:confluence-content.summary"
            ]
          }
        ],
        "description": "Returns whether a user is watching a space. Choose the user by\ndoing one of the following:\n\n- Specify a user via a query parameter: Use the `username`, `key`, or `accountId` to identify the user.\nNote that `username` and `key` have been deprecated in favor of `accountId`. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n- Do not specify a user: The currently logged-in user will be used.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission if specifying a user, otherwise\npermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserWatchResource.isWatchingSpace_get",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space to be queried for whether the specified user is\nwatching it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `key` of the user to be queried for whether they are watching the space. Required, unless the `username` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "username",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `username` of the user to be queried for whether they are watching the space. Required, unless the `key` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "description": "The `accountId` of the user to be queried for whether they are watching the space. The accountId uniquely identifies\nthe user across all Atlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.\nRequired, unless `username` or `userKey` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested watch status is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UserWatch"
                }
              }
            }
          },
          "403": {
            "description": "Returned if;\n\n- The calling user does not have permission to view the\nspace.\n- A user is specified via a query parameter and the calling user is\nnot a Confluence administrator.\n- No space exists for the specified `spaceKey`."
          },
          "404": {
            "description": "Returned if no `spaceKey` is specified."
          }
        },
        "x-atlassian-connect-scope": "READ"
      },
      "post": {
        "tags": [
          "/user"
        ],
        "summary": "Add space watcher",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Adds a user as a watcher to a space. Choose the user by doing one of the\nfollowing:\n\n- Specify a user via a query parameter: Use the `username`, `key`, or `accountId` to identify the user.\nNote that `username` and `key` have been deprecated in favor of `accountId`. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n- Do not specify a user: The currently logged-in user will be used.\n\nNote, you must add the `X-Atlassian-Token: no-check` header when making a\nrequest, as this operation has XSRF protection.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission if specifying a user, otherwise\npermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserWatchResource.addSpaceWatcher_post",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space to add the watcher to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `key` of the user to be added as a watcher. Required, unless the `username` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "username",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `username` of the user to be added as a watcher. Required, unless the `key` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "description": "The `accountId` of the user to be added as a watcher. The accountId uniquely identifies the user across all\nAtlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.\nRequired, unless `username` or `userKey` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Returned if the watcher was successfully created. No response body is\nreturned."
          },
          "403": {
            "description": "Returned if;\n\n- The `X-Atlassian-Token: no-check` header is not specified.\n- The calling user does not have permission to view the\nspace.\n- A user is specified via a query parameter and the calling user is\nnot a Confluence administrator.\n- No space exists for the specified `spaceKey`."
          },
          "404": {
            "description": "Returned if no `spaceKey` is specified."
          }
        },
        "x-atlassian-connect-scope": "WRITE"
      },
      "delete": {
        "tags": [
          "/user"
        ],
        "summary": "Remove space watch",
        "security": [
          {
            "oAuthDefinitions": [
              "write:confluence-content"
            ]
          }
        ],
        "description": "Removes a user as a watcher from a space. Choose the user by doing one of\nthe following:\n\n- Specify a user via a query parameter: Use the `username`, `key`, or `accountId` to identify the user.\nNote that `username` and `key` have been deprecated in favor of `accountId`. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n- Do not specify a user: The currently logged-in user will be used.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission if specifying a user, otherwise\npermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserWatchResource.removeSpaceWatch_delete",
        "parameters": [
          {
            "name": "spaceKey",
            "in": "path",
            "description": "The key of the space to remove the watcher from.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "key",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `key` of the user to be removed as a watcher. Required, unless the `username` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "username",
            "in": "query",
            "description": "This parameter has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe `username` of the user to be removed as a watcher. Required, unless the `key` or `accountId` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "accountId",
            "in": "query",
            "description": "The `accountId` of the user to be removed as a watcher. The accountId uniquely identifies the user across all\nAtlassian products. For example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`.\nRequired, unless `username` or `userKey` is specified.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Returned if the watcher was successfully deleted. No response body is returned."
          },
          "403": {
            "description": "Returned if;\n\n- The `X-Atlassian-Token: no-check` header is not specified.\n- The calling user does not have permission to view the space.\n- A user is specified via a query parameter and the calling user is\nnot a Confluence administrator.\n- No space exists for the specified `spaceKey`."
          },
          "404": {
            "description": "Returned if no `spaceKey` is specified."
          }
        },
        "x-atlassian-connect-scope": "DELETE"
      }
    },
    "/user/email": {
      "get": {
        "tags": [
          "/user/email"
        ],
        "summary": "Get a user's email",
        "description": "Returns a user's email address. This API is only available to apps approved by\nAtlassian, according to these [guidelines](https://community.developer.atlassian.com/t/guidelines-for-requesting-access-to-email-address/27603).\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserEmailResource.getPrivacyUnsafeUserEmail_get",
        "parameters": [
          {
            "name": "accountId",
            "in": "query",
            "description": "The account ID of the user, which uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`. Required.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the requested user's email is returned.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountIdEmailRecord"
                }
              }
            }
          },
          "400": {
            "description": "Returned if the calling app is not approved to use this API."
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "404": {
            "description": "Returned if a user with the given accountId does not exist."
          },
          "501": {
            "description": "Indicates that the API is not currently enabled."
          }
        },
        "x-atlassian-connect-scope": "ACCESS_EMAIL_ADDRESSES"
      }
    },
    "/user/email/bulk": {
      "get": {
        "tags": [
          "/user/email/bulk"
        ],
        "summary": "Bulk fetch of users' email addresses",
        "description": "Returns user email addresses for a set of accountIds. This API is only available to apps approved by\nAtlassian, according to these [guidelines](https://community.developer.atlassian.com/t/guidelines-for-requesting-access-to-email-address/27603).\n\nAny accounts which are not available will not be included in the result.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserEmailResource.getPrivacyUnsafeUserEmailBulk_get",
        "parameters": [
          {
            "name": "accountId",
            "in": "query",
            "description": "The account IDs of the users.",
            "required": true,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the request is successful.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountIdEmailRecordArray"
                }
              }
            }
          },
          "400": {
            "description": "Returned if the calling app is not approved to use this API."
          },
          "401": {
            "description": "Returned if the authentication credentials are incorrect or missing\nfrom the request."
          },
          "501": {
            "description": "Indicates that the API is not currently enabled."
          }
        },
        "x-atlassian-connect-scope": "ACCESS_EMAIL_ADDRESSES"
      }
    },
    "/user/bulk/migration": {
      "get": {
        "tags": [
          "/user"
        ],
        "summary": "Get accountIds for users",
        "description": "Returns the accountIds for the users specified in the key or username parameters. Note that multiple key and username parameters can be specified.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\n'Confluence Administrator' global permission if specifying a user, otherwise\npermission to access the Confluence site ('Can use' global permission).",
        "operationId": "com.atlassian.confluence.plugins.restapi.resources.UserResource.getBulkUserMigration",
        "parameters": [
          {
            "name": "key",
            "in": "query",
            "description": "The key of a user. To specify multiple users, pass multiple key parameters separated by ampersands.\nFor example, key=mia&key=alana. Required if username isn't provided. Cannot be provided if username is present.",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "username",
            "in": "query",
            "description": "The username of a user. To specify multiple users, pass multiple username parameters separated by ampersands.\nFor example, username=mia&username=alana. Required if key isn't provided. Cannot be provided if key is present.",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            }
          },
          {
            "name": "start",
            "in": "query",
            "description": "The index of the first item to return in a page of results (page offset).",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "The maximum number of results to return per page.\nNote, this may be restricted by fixed system limits.",
            "required": false,
            "schema": {
              "type": "integer",
              "format": "int32",
              "minimum": 0,
              "default": 200
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Returned if the request is successful.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MigratedUserArray"
                }
              }
            }
          },
          "400": {
            "description": "Returned if no `username` or 'key' is specified."
          },
          "403": {
            "description": "Returned if;\n\n- The calling user does not have permission to view users.\n- A schema has not been defined for this response code."
          }
        },
        "x-atlassian-connect-scope": "READ"
      }
    }
  },
  "externalDocs": {
    "description": "The online and complete version of the Confluence Cloud REST API docs.",
    "url": "https://developer.atlassian.com/cloud/confluence/rest/"
  },
  "x-atlassian-narrative": {
    "documents": [
      {
        "title": "About",
        "anchor": "about",
        "body": "This is the reference for the Confluence Cloud REST API. This API is the primary way to get and modify data in Confluence Cloud, whether you are developing an app or any other integration. Use it to interact with Confluence entities, like pages and blog posts, spaces, users, groups, and more."
      },
      {
        "title": "Authentication and authorization",
        "anchor": "auth",
        "body": "**Authentication:** If you are building a Cloud app, authentication is implemented via JWT (see [Authentication for apps](https://developer.atlassian.com/cloud/confluence/authentication-for-apps/)). Otherwise, if you are authenticating directly against the REST API, the REST API supports basic auth (see [Basic auth for REST APIs](https://developer.atlassian.com/cloud/confluence/basic-auth-for-rest-apis/)).\n\n**Authorization:** If you are building a Cloud app, authorization can be implemented by [scopes](https://developer.atlassian.com/cloud/confluence/scopes/) or by [OAuth 2.0 user impersonation](https://developer.atlassian.com/cloud/confluence/oauth-2-jwt-bearer-tokens-for-apps). Otherwise, if you are making calls directly against the REST API, authorization is based on the user used in the authentication process.\n\nSee [Security overview](https://developer.atlassian.com/cloud/jira/platform/security-overview/) for more details on authentication and authorization."
      },
      {
        "title": "Status codes",
        "anchor": "status-code",
        "body": "The Confluence REST API uses the [standard HTTP status codes](https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html).\n\nResponses that return an error status code will also return a response body, similar to the following:\n```json\n{\n  \"statusCode\": 404,\n  \"data\": {\n    \"authorized\": false,\n    \"valid\": false,\n    \"errors\": [\n      {\n        \"message\": {\n          \"translation\": \"This is an example error message.\",\n          \"args\": []\n        }\n      }\n    ],\n    \"successful\": false\n  },\n  \"message\": \"This is an example error message.\"\n}\n```"
      },
      {
        "title": "Using the REST API",
        "anchor": "using",
        "body": "**Expansion:** The Confluence REST API uses resource expansion: some parts of a resource are not returned unless explicitly specified. This simplifies responses and minimizes network traffic.\n\nTo expand part of a resource in a request, use the `expand` query parameter and specify the entities to be expanded. If you need to expand nested entities, use the `.` dot notation. For example, the following request will expand information about the requested content's space and labels:\n```\nGET /wiki/rest/api/content/{id}?expand=space,metadata.labels\n```\n**Pagination:** The Confluence REST API uses pagination: a method that returns a response with multiple objects can only return a limited number at one time. This limits the size of responses and conserves server resources.\n\nUse the 'limit' and 'start' query parameters to specify pagination:\n\n- `limit` is the number of objects to return per page. This may be restricted by system limits.\n- `start` is the index of the first item returned in the page of results. The base index is 0.\n\nFor example, the following request will return ten content objects, starting from the fifth object.\n```\nGET /wiki/rest/api/content?start=4,limit=10\n```\n**Special headers:**\n\n- `X-Atlassian-Token: no-check` request header must be specified for methods\nthat are protected from Cross Site Request Forgery (XSRF/CSRF) attacks. This is\nstated in the method description, if required. For more information, see this\n[KB article](https://confluence.atlassian.com/cloudkb/xsrf-check-failed-when-calling-cloud-apis-826874382.html)."
      },
      {
        "title": "Capabilities",
        "anchor": "capabilities",
        "body": "**Webhooks:** A webhook is a user-defined callback over HTTP. You can use Confluence webhooks to notify your app or web application when certain events occur in Confluence. For example, when a page is created or updated. To learn more, see [Webhooks](https://developer.atlassian.com/cloud/confluence/modules/webhook/).\n\n**Content properties:** Content properties are a key-value storage associated with a piece of Confluence content. If you are building an app, this is one form of persistence that you can use. You can use the Confluence REST API to get, update, and delete content properties. To learn more, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).\n\n**CQL:** The Confluence Query Language (CQL) allows you to perform complex searches for content using an SQL-like syntax in the `search` resource. To learn more, see [Advanced searching using CQL](https://developer.atlassian.com/cloud/confluence/advanced-searching-using-cql/)."
      }
    ]
  },
  "servers": [
    {
      "url": "//your-domain.atlassian.net/wiki/rest/api"
    }
  ],
  "components": {
    "parameters": {
      "contentExpand": {
        "name": "expand",
        "in": "query",
        "description": "A multi-value parameter indicating which properties of the content to expand.\n\n- `childTypes.all` returns whether the content has attachments, comments, or child pages.\nUse this if you only need to check whether the content has children of a particular type.\n- `childTypes.attachment` returns whether the content has attachments.\n- `childTypes.comment` returns whether the content has comments.\n- `childTypes.page` returns whether the content has child pages.\n- `container` returns the space that the content is in. This is the same as the information\nreturned by [Get space](#api-space-spaceKey-get).\n- `metadata.currentuser` returns information about the current user in relation to the content,\nincluding when they last viewed it, modified it, contributed to it, or added it as a favourite.\n- `metadata.properties` returns content properties that have been set via the Confluence REST API.\n- `metadata.labels` returns the labels that have been added to the content.\n- `metadata.frontend` (this property is only used by Atlassian)\n- `operations` returns the operations for the content, which are used when setting permissions.\n- `children.page` returns pages that are descendants at the level immediately below the content.\n- `children.attachment` returns all attachments for the content.\n- `children.comment` returns all comments on the content.\n- `restrictions.read.restrictions.user` returns the users that have permission to read the content.\n- `restrictions.read.restrictions.group` returns the groups that have permission to read the content. Note that\nthis may return deleted groups, because deleting a group doesn't remove associated restrictions.\n- `restrictions.update.restrictions.user` returns the users that have permission to update the content.\n- `restrictions.update.restrictions.group` returns the groups that have permission to update the content. Note that\nthis may return deleted groups, because deleting a group doesn't remove associated restrictions.\n- `history` returns the history of the content, including the date it was created.\n- `history.lastUpdated` returns information about the most recent update of the content, including\nwho updated it and when it was updated.\n- `history.previousVersion` returns information about the update prior to the current content update.\n- `history.contributors` returns all of the users who have contributed to the content.\n- `history.nextVersion` returns information about the update after to the current content update.\n- `ancestors` returns the parent page, if the content is a page.\n- `body` returns the body of the content in different formats, including the editor format,\nview format, and export format.\n- `version` returns information about the most recent update of the content, including who updated it\nand when it was updated.\n- `descendants.page` returns pages that are descendants at any level below the content.\n- `descendants.attachment` returns all attachments for the content, same as `children.attachment`.\n- `descendants.comment` returns all comments on the content, same as `children.comment`.\n- `space` returns the space that the content is in. This is the same as the information returned by\n[Get space](#api-space-spaceKey-get).\n\nIn addition, the following comment-specific expansions can be used:\n- `extensions.inlineProperties` returns inline comment-specific properties.\n- `extensions.resolution` returns the resolution status of each comment.",
        "required": false,
        "style": "form",
        "schema": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "childTypes.all",
              "childTypes.attachment",
              "childTypes.comment",
              "childTypes.page",
              "container",
              "metadata.currentuser",
              "metadata.properties",
              "metadata.labels",
              "metadata.frontend",
              "operations",
              "children.page",
              "children.attachment",
              "children.comment",
              "restrictions.read.restrictions.user",
              "restrictions.read.restrictions.group",
              "restrictions.update.restrictions.user",
              "restrictions.update.restrictions.group",
              "history",
              "history.lastUpdated",
              "history.previousVersion",
              "history.contributors",
              "history.nextVersion",
              "ancestors",
              "body",
              "version",
              "descendants.page",
              "descendants.attachment",
              "descendants.comment",
              "space"
            ]
          }
        }
      },
      "spaceExpand": {
        "name": "expand",
        "in": "query",
        "description": "A multi-value parameter indicating which properties of the spaces to\nexpand, where:\n\n  - `settings` returns the settings for the space, similar to [Get space settings](#api-space-spaceKey-settings-get).\n  - `metadata.labels` returns the space labels, which are used to categorize the space.\n  - `operations` returns the operations for a space, which are used when setting permissions.\n  - `lookAndFeel` returns information about the look and feel of the space, including the color scheme.\n  - `permissions` returns the permissions for the space. Note that this may return permissions for deleted groups,\n  because deleting a group doesn't remove associated space permissions.\n  - `icon` returns information about space icon.\n  - `description.plain` returns the description of the space.\n  - `description.view` returns the description of the space.\n  - `theme` returns information about the space theme.\n  - `homepage` returns information about the space homepage.",
        "required": false,
        "style": "form",
        "schema": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "settings",
              "metadata.labels",
              "operations",
              "lookAndFeel",
              "permissions",
              "icon",
              "description.plain",
              "description.view",
              "theme",
              "homepage"
            ]
          }
        }
      }
    },
    "requestBodies": {
      "com.atlassian.confluence.plugins.restapi.resources.AttachmentResource.createAttachments_post": {
        "content": {
          "multipart/form-data": {
            "schema": {
              "$ref": "#/components/schemas/CreateAttachmentsPayload"
            }
          }
        }
      },
      "ContentBlueprintDraft": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ContentBlueprintDraft"
            }
          }
        },
        "required": true
      }
    },
    "securitySchemes": {
      "oAuthDefinitions": {
        "type": "oauth2",
        "description": "This API uses OAuth 2 with the authorizationCode grant flow.",
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://auth.atlassian.com/authorize",
            "tokenUrl": "https://auth.atlassian.com/oauth/token",
            "scopes": {
              "read:confluence-content.all": "Read all content, including content body (expansions permitted). Note, APIs using this scope may also return data allowed by read:confluence-space.summary. However, this scope is not a substitute for read:confluence-space.summary.",
              "read:confluence-content.summary": "Read a summary of the content, which is the content without expansions. Note, APIs using this scope may also return data allowed by read:confluence-space.summary. However, this scope is not a substitute for read:confluence-space.summary.",
              "write:confluence-content": "Permits the creation of pages, blogs, comments and questions.",
              "read:confluence-space.summary": "Read a summary of space information without expansions.",
              "write:confluence-space": "Create, update and delete space information.",
              "write:confluence-file": "Upload attachments.",
              "read:confluence-props": "Read content properties.",
              "write:confluence-props": "Write content properties.",
              "search:confluence": "Search Confluence. Note, APIs using this scope may also return data allowed by read:confluence-space.summary and read:confluence-content.summary. However, this scope is not a substitute for read:confluence-space.summary or read:confluence-content.summary.",
              "manage:confluence-configuration": "Manage global settings."
            }
          }
        }
      }
    },
    "schemas": {
      "CreateAttachmentsPayload": {
        "title": "CreateAttachmentsPayload",
        "type": "object",
        "properties": {
          "file": {
            "description": "The relative location and name of the attachment to be added to\nthe content.",
            "type": "string",
            "format": "binary"
          },
          "comment": {
            "description": "The comment for the attachment that is being added.\nIf you specify a comment, then every file must have a comment and\nthe comments must be in the same order as the files. Alternatively,\ndon't specify any comments.",
            "type": "string",
            "format": "binary"
          },
          "minorEdit": {
            "description": "If `minorEdits` is set to 'true', no notification email or activity stream\nwill be generated when the attachment is added to the content.",
            "type": "string",
            "format": "binary"
          }
        },
        "required": [
          "file",
          "minorEdit"
        ]
      },
      "AccountIdEmailRecord": {
        "type": "object",
        "required": [
          "accountId",
          "email"
        ],
        "additionalProperties": false,
        "properties": {
          "accountId": {
            "type": "string"
          },
          "email": {
            "type": "string"
          }
        }
      },
      "AccountIdEmailRecordArray": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/AccountIdEmailRecord"
        }
      },
      "AffectedObject": {
        "type": "object",
        "required": [
          "name",
          "objectType"
        ],
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "objectType": {
            "type": "string"
          }
        }
      },
      "AttachmentUpdate": {
        "type": "object",
        "required": [
          "version",
          "id",
          "type"
        ],
        "additionalProperties": false,
        "properties": {
          "version": {
            "type": "object",
            "required": [
              "number"
            ],
            "additionalProperties": false,
            "description": "The attachment version. Set this to the current version number of the\nattachment. Note, the version number only needs to be incremented when\nupdating the actual attachment, not its properties.",
            "properties": {
              "number": {
                "type": "integer",
                "format": "int32",
                "description": "The version number."
              }
            }
          },
          "id": {
            "type": "string",
            "description": "The ID of the attachment to be updated."
          },
          "type": {
            "type": "string",
            "description": "Set this to `attachment`.",
            "enum": [
              "attachment"
            ]
          },
          "title": {
            "type": "string",
            "description": "The updated name of the attachment.",
            "maxLength": 255
          },
          "metadata": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "mediaType": {
                "type": "string",
                "description": "The media type of the attachment, e.g. 'img/jpg'."
              },
              "comment": {
                "type": "string",
                "description": "The comment for this update."
              }
            }
          },
          "container": {
            "type": "object",
            "description": "The new content to attach the attachment to.",
            "required": [
              "id",
              "type"
            ],
            "additionalProperties": false,
            "properties": {
              "id": {
                "type": "string",
                "description": "The `id` of the parent content."
              },
              "type": {
                "type": "string",
                "description": "The content type. You can only attach attachments to content\nof type: `page`, `blogpost`."
              }
            }
          }
        }
      },
      "AuditRecord": {
        "type": "object",
        "required": [
          "author",
          "remoteAddress",
          "creationDate",
          "summary",
          "description",
          "category",
          "sysAdmin",
          "affectedObject",
          "changedValues",
          "associatedObjects"
        ],
        "additionalProperties": false,
        "properties": {
          "author": {
            "type": "object",
            "required": [
              "type",
              "displayName",
              "operations",
              "username",
              "userKey"
            ],
            "additionalProperties": false,
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "user"
                ],
                "default": "user"
              },
              "displayName": {
                "type": "string"
              },
              "operations": {
                "type": "object",
                "default": {}
              },
              "username": {
                "type": "string"
              },
              "userKey": {
                "type": "string"
              }
            }
          },
          "remoteAddress": {
            "type": "string"
          },
          "creationDate": {
            "type": "integer",
            "description": "The creation date-time of the audit record, as a timestamp.",
            "format": "int64"
          },
          "summary": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "sysAdmin": {
            "type": "boolean"
          },
          "affectedObject": {
            "$ref": "#/components/schemas/AffectedObject"
          },
          "changedValues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ChangedValue"
            }
          },
          "associatedObjects": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AffectedObject"
            }
          }
        }
      },
      "AuditRecordArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AuditRecord"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "AuditRecordCreate": {
        "type": "object",
        "required": [
          "remoteAddress"
        ],
        "additionalProperties": false,
        "properties": {
          "author": {
            "type": "object",
            "description": "The user that actioned the event. If `author` is not specified, then all\n`author` properties will be set to null/empty, except for `type` which\nwill be set to 'user'.",
            "required": [
              "type"
            ],
            "additionalProperties": false,
            "properties": {
              "type": {
                "type": "string",
                "description": "Set to 'user'.",
                "enum": [
                  "user"
                ],
                "default": "user"
              },
              "displayName": {
                "type": "string",
                "description": "The name that is displayed on the audit log in the Confluence UI."
              },
              "operations": {
                "type": "object",
                "description": "Always defaults to null.",
                "default": {}
              },
              "username": {
                "type": "string",
                "description": "The username of the user that actioned the event."
              },
              "userKey": {
                "type": "string",
                "description": "The userKey of the user that actioned the event."
              }
            }
          },
          "remoteAddress": {
            "type": "string",
            "description": "The IP address of the computer where the event was initiated from."
          },
          "creationDate": {
            "type": "integer",
            "description": "The creation date-time of the audit record, as a timestamp. This is converted\nto a date-time display in the Confluence UI. If the `creationDate` is not\nspecified, then it will be set to the timestamp for the current date-time.",
            "format": "int64"
          },
          "summary": {
            "type": "string",
            "description": "The summary of the event, which is displayed in the 'Change' column on\nthe audit log in the Confluence UI."
          },
          "description": {
            "type": "string",
            "description": "A long description of the event, which is displayed in the 'Description'\nfield on the audit log in the Confluence UI."
          },
          "category": {
            "type": "string",
            "description": "The category of the event, which is displayed in the 'Event type' column\non the audit log in the Confluence UI."
          },
          "sysAdmin": {
            "type": "boolean",
            "description": "Indicates whether the event was actioned by a system administrator.",
            "default": false
          },
          "affectedObject": {
            "$ref": "#/components/schemas/AffectedObject"
          },
          "changedValues": {
            "type": "array",
            "description": "The values that were changed in the event.",
            "items": {
              "$ref": "#/components/schemas/ChangedValue"
            }
          },
          "associatedObjects": {
            "type": "array",
            "description": "Objects that were associated with the event. For example, if the event\nwas a space permission change then the associated object would be the\nspace.",
            "items": {
              "$ref": "#/components/schemas/AffectedObject"
            }
          }
        }
      },
      "BlueprintTemplate": {
        "type": "object",
        "required": [
          "templateId",
          "originalTemplate",
          "referencingBlueprint",
          "name",
          "description",
          "labels",
          "templateType",
          "_expandable",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "templateId": {
            "type": "string"
          },
          "originalTemplate": {
            "type": "object",
            "required": [
              "pluginKey",
              "moduleKey"
            ],
            "additionalProperties": false,
            "properties": {
              "pluginKey": {
                "type": "string"
              },
              "moduleKey": {
                "type": "string"
              }
            }
          },
          "referencingBlueprint": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            }
          },
          "templateType": {
            "type": "string"
          },
          "body": {
            "$ref": "#/components/schemas/ContentBody"
          },
          "_expandable": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "body": {
                "type": "string"
              }
            }
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "BlueprintTemplateArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BlueprintTemplate"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "ButtonLookAndFeel": {
        "type": "object",
        "required": [
          "backgroundColor",
          "color"
        ],
        "additionalProperties": false,
        "properties": {
          "backgroundColor": {
            "type": "string"
          },
          "color": {
            "type": "string"
          }
        }
      },
      "Breadcrumb": {
        "type": "object",
        "required": [
          "label",
          "url",
          "separator"
        ],
        "additionalProperties": false,
        "properties": {
          "label": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "separator": {
            "type": "string"
          }
        }
      },
      "ChangedValue": {
        "type": "object",
        "required": [
          "name",
          "oldValue",
          "newValue"
        ],
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "oldValue": {
            "type": "string"
          },
          "newValue": {
            "type": "string"
          }
        }
      },
      "Container": {
        "type": "object",
        "description": "Container for content. This can be either a space (containing a page or blogpost)\nor a page/blog post (containing an attachment or comment)",
        "additionalProperties": true
      },
      "ContainerLookAndFeel": {
        "type": "object",
        "required": [
          "background",
          "backgroundColor",
          "backgroundImage",
          "backgroundSize",
          "padding",
          "borderRadius"
        ],
        "additionalProperties": false,
        "properties": {
          "background": {
            "type": "string"
          },
          "backgroundColor": {
            "type": "string"
          },
          "backgroundImage": {
            "type": "string"
          },
          "backgroundSize": {
            "type": "string"
          },
          "padding": {
            "type": "string"
          },
          "borderRadius": {
            "type": "string"
          }
        }
      },
      "ContainerSummary": {
        "type": "object",
        "required": [
          "title",
          "displayUrl"
        ],
        "additionalProperties": false,
        "properties": {
          "title": {
            "type": "string"
          },
          "displayUrl": {
            "type": "string"
          }
        }
      },
      "Content": {
        "type": "object",
        "description": "Base object for all content types.",
        "required": [
          "id",
          "type",
          "status",
          "title",
          "_expandable"
        ],
        "additionalProperties": true,
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "space": {
            "$ref": "#/components/schemas/Space"
          },
          "history": {
            "$ref": "#/components/schemas/ContentHistory"
          },
          "version": {
            "$ref": "#/components/schemas/Version"
          },
          "ancestors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Content"
            }
          },
          "operations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationCheckResult"
            }
          },
          "children": {
            "$ref": "#/components/schemas/ContentChildren"
          },
          "childTypes": {
            "$ref": "#/components/schemas/ContentChildType"
          },
          "descendants": {
            "$ref": "#/components/schemas/ContentChildren"
          },
          "container": {
            "$ref": "#/components/schemas/Container"
          },
          "body": {
            "type": "object",
            "required": [
              "_expandable"
            ],
            "minProperties": 1,
            "maxProperties": 1,
            "additionalProperties": false,
            "properties": {
              "view": {
                "$ref": "#/components/schemas/ContentBody"
              },
              "export_view": {
                "$ref": "#/components/schemas/ContentBody"
              },
              "styled_view": {
                "$ref": "#/components/schemas/ContentBody"
              },
              "storage": {
                "$ref": "#/components/schemas/ContentBody"
              },
              "editor2": {
                "$ref": "#/components/schemas/ContentBody"
              },
              "anonymous_export_view": {
                "$ref": "#/components/schemas/ContentBody"
              },
              "_expandable": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "editor": {
                    "type": "string"
                  },
                  "view": {
                    "type": "string"
                  },
                  "export_view": {
                    "type": "string"
                  },
                  "styled_view": {
                    "type": "string"
                  },
                  "storage": {
                    "type": "string"
                  },
                  "editor2": {
                    "type": "string"
                  },
                  "anonymous_export_view": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "restrictions": {
            "type": "object",
            "required": [
              "_links"
            ],
            "additionalProperties": false,
            "properties": {
              "read": {
                "$ref": "#/components/schemas/ContentRestriction"
              },
              "update": {
                "$ref": "#/components/schemas/ContentRestriction"
              },
              "_links": {
                "$ref": "#/components/schemas/GenericLinks"
              }
            }
          },
          "_expandable": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "childTypes": {
                "type": "string"
              },
              "container": {
                "type": "string"
              },
              "metadata": {
                "type": "string"
              },
              "operations": {
                "type": "string"
              },
              "children": {
                "type": "string"
              },
              "restrictions": {
                "type": "string"
              },
              "history": {
                "type": "string"
              },
              "ancestors": {
                "type": "string"
              },
              "body": {
                "type": "string"
              },
              "version": {
                "type": "string"
              },
              "descendants": {
                "type": "string"
              },
              "space": {
                "type": "string"
              }
            }
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "ContentArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Content"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "ContentAttachment": {
        "description": "Representation of an attachment (content)",
        "allOf": [
          {
            "$ref": "#/components/schemas/Content"
          },
          {
            "type": "object",
            "required": [
              "metadata",
              "extensions",
              "_links"
            ],
            "properties": {
              "metadata": {
                "type": "object",
                "properties": {
                  "mediaType": {
                    "type": "string"
                  }
                }
              },
              "extensions": {
                "type": "object",
                "properties": {
                  "position": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              },
              "_links": {
                "$ref": "#/components/schemas/GenericLinks"
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "ContentBlogpost": {
        "description": "Representation of a blogpost (content)",
        "allOf": [
          {
            "$ref": "#/components/schemas/Content"
          },
          {
            "type": "object",
            "required": [
              "metadata",
              "_links"
            ],
            "properties": {
              "metadata": {
                "$ref": "#/components/schemas/ContentMetadata"
              },
              "_links": {
                "$ref": "#/components/schemas/GenericLinks"
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "ContentBlueprintDraft": {
        "type": "object",
        "required": [
          "version",
          "title",
          "type"
        ],
        "additionalProperties": false,
        "properties": {
          "version": {
            "type": "object",
            "description": "The version for the new content.",
            "required": [
              "number"
            ],
            "additionalProperties": false,
            "properties": {
              "number": {
                "type": "integer",
                "format": "int32",
                "description": "The version number. Set this to `1`."
              }
            }
          },
          "title": {
            "type": "string",
            "description": "The title of the content. If you don't want to change the title,\nset this to the current title of the draft.",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "description": "The type of content. Set this to `page`.",
            "enum": [
              "page"
            ]
          },
          "status": {
            "type": "string",
            "description": "The status of the content. Set this to `current` or omit it altogether.",
            "enum": [
              "current"
            ],
            "default": "current"
          },
          "space": {
            "type": "object",
            "required": [
              "key"
            ],
            "description": "The space for the content.",
            "additionalProperties": false,
            "properties": {
              "key": {
                "type": "string",
                "format": "int32",
                "description": "The key of the space"
              }
            }
          },
          "ancestors": {
            "type": "array",
            "description": "The new ancestor (i.e. parent page) for the content. If you have\nspecified an ancestor, you must also specify a `space` property\nin the request body for the space that the ancestor is in.\n\nNote, if you specify more than one ancestor, the last ID in the array\nwill be selected as the parent page for the content.",
            "items": {
              "type": "object",
              "required": [
                "id"
              ],
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The content ID of the ancestor."
                }
              }
            }
          }
        }
      },
      "ContentBody": {
        "type": "object",
        "required": [
          "value",
          "representation",
          "_expandable"
        ],
        "additionalProperties": false,
        "properties": {
          "value": {
            "type": "string"
          },
          "representation": {
            "type": "string",
            "enum": [
              "view",
              "export_view",
              "styled_view",
              "storage",
              "editor2",
              "anonymous_export_view"
            ]
          },
          "embeddedContent": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EmbeddedContent"
            }
          },
          "webresource": {
            "$ref": "#/components/schemas/WebResourceDependencies"
          },
          "_expandable": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "content": {
                "type": "string"
              }
            }
          }
        }
      },
      "ContentBodyCreate": {
        "type": "object",
        "description": "This object is used when creating or updating content.",
        "required": [
          "value",
          "representation"
        ],
        "additionalProperties": false,
        "properties": {
          "value": {
            "type": "string",
            "description": "The body of the content in the relevant format."
          },
          "representation": {
            "type": "string",
            "description": "The content format type. Set the value of this property to\nthe name of the format being used, e.g. 'storage'.",
            "enum": [
              "view",
              "export_view",
              "styled_view",
              "storage",
              "editor2",
              "anonymous_export_view"
            ]
          }
        }
      },
      "ContentChildren": {
        "type": "object",
        "required": [
          "_expandable",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "attachment": {
            "$ref": "#/components/schemas/ContentArray"
          },
          "comment": {
            "$ref": "#/components/schemas/ContentArray"
          },
          "page": {
            "$ref": "#/components/schemas/ContentArray"
          },
          "_expandable": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "attachment": {
                "type": "string"
              },
              "comment": {
                "type": "string"
              },
              "page": {
                "type": "string"
              }
            }
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "ContentChildType": {
        "type": "object",
        "description": "Shows whether a piece of content has attachments, comments, or child pages.\nNote, this doesn't actually contain the child objects.",
        "required": [
          "_expandable"
        ],
        "additionalProperties": false,
        "properties": {
          "attachment": {
            "type": "object",
            "required": [
              "value",
              "_links"
            ],
            "additionalProperties": false,
            "properties": {
              "value": {
                "type": "boolean"
              },
              "_links": {
                "$ref": "#/components/schemas/GenericLinks"
              }
            }
          },
          "comment": {
            "type": "object",
            "required": [
              "value",
              "_links"
            ],
            "additionalProperties": false,
            "properties": {
              "value": {
                "type": "boolean"
              },
              "_links": {
                "$ref": "#/components/schemas/GenericLinks"
              }
            }
          },
          "page": {
            "type": "object",
            "required": [
              "value",
              "_links"
            ],
            "additionalProperties": false,
            "properties": {
              "value": {
                "type": "boolean"
              },
              "_links": {
                "$ref": "#/components/schemas/GenericLinks"
              }
            }
          },
          "_expandable": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "all": {
                "type": "string"
              },
              "attachment": {
                "type": "string"
              },
              "comment": {
                "type": "string"
              },
              "page": {
                "type": "string"
              }
            }
          }
        }
      },
      "ContentComment": {
        "description": "Representation of a comment (content)",
        "allOf": [
          {
            "$ref": "#/components/schemas/Content"
          },
          {
            "type": "object",
            "required": [
              "metadata",
              "extensions",
              "_links"
            ],
            "properties": {
              "metadata": {
                "$ref": "#/components/schemas/ContentMetadata"
              },
              "extensions": {
                "type": "object",
                "required": [
                  "location"
                ],
                "properties": {
                  "location": {
                    "type": "string"
                  },
                  "inlineProperties": {
                    "type": "object",
                    "required": [
                      "originalSelection",
                      "markerRef"
                    ],
                    "properties": {
                      "originalSelection": {
                        "type": "string"
                      },
                      "markerRef": {
                        "type": "string"
                      }
                    }
                  },
                  "resolution": {
                    "type": "object",
                    "properties": {
                      "status": {
                        "type": "string"
                      },
                      "lastModifier": {
                        "type": "object",
                        "properties": {
                          "type": {
                            "type": "string"
                          },
                          "profilePicture": {
                            "$ref": "#/components/schemas/Icon"
                          },
                          "displayName": {
                            "type": "string"
                          },
                          "operations": {
                            "type": "array",
                            "items": {
                              "$ref": "#/components/schemas/OperationCheckResult"
                            }
                          }
                        }
                      },
                      "lastModifiedDate": {
                        "type": "string",
                        "format": "date-time"
                      }
                    }
                  }
                }
              },
              "_links": {
                "$ref": "#/components/schemas/GenericLinks"
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "ContentCreate": {
        "type": "object",
        "required": [
          "title",
          "type",
          "space",
          "body"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the draft content. Required when publishing a draft."
          },
          "title": {
            "type": "string",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "description": "The type of the new content. Custom content types defined by apps are also supported.",
            "enum": [
              "page",
              "blogpost",
              "comment",
              "attachment"
            ]
          },
          "space": {
            "type": "object",
            "required": [
              "key"
            ],
            "description": "The space that the content is being created in.",
            "properties": {
              "key": {
                "type": "string",
                "description": "The key of the space."
              }
            }
          },
          "container": {
            "type": "object",
            "required": [
              "id",
              "type"
            ],
            "description": "The container that the content is being created in.",
            "properties": {
              "id": {
                "type": "string",
                "description": "The id of the container."
              },
              "type": {
                "type": "string",
                "description": "The type of the container."
              }
            }
          },
          "status": {
            "type": "string",
            "description": "The status of the new content.",
            "enum": [
              "current",
              "trashed",
              "historical",
              "draft"
            ],
            "default": "current"
          },
          "ancestors": {
            "type": "array",
            "description": "The parent content of the new content. Only one parent content\n`id` can be specified.",
            "items": {
              "type": "object",
              "required": [
                "id"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The `id` of the parent content."
                }
              }
            }
          },
          "body": {
            "type": "object",
            "description": "The body of the new content. Does not apply to attachments.\nOnly one body format should be specified as the property for\nthis object, e.g. `storage`.\n\nNote, `editor2` format is used by Atlassian only. `anonymous_export_view` is\nthe same as 'export_view' format but only content viewable by an anonymous\nuser is included.",
            "minProperties": 1,
            "maxProperties": 1,
            "additionalProperties": false,
            "properties": {
              "view": {
                "$ref": "#/components/schemas/ContentBodyCreate"
              },
              "export_view": {
                "$ref": "#/components/schemas/ContentBodyCreate"
              },
              "styled_view": {
                "$ref": "#/components/schemas/ContentBodyCreate"
              },
              "storage": {
                "$ref": "#/components/schemas/ContentBodyCreate"
              },
              "editor2": {
                "$ref": "#/components/schemas/ContentBodyCreate"
              },
              "anonymous_export_view": {
                "$ref": "#/components/schemas/ContentBodyCreate"
              }
            }
          }
        },
        "additionalProperties": false
      },
      "ContentHistory": {
        "type": "object",
        "required": [
          "latest",
          "createdBy",
          "createdDate"
        ],
        "additionalProperties": false,
        "properties": {
          "latest": {
            "type": "boolean"
          },
          "createdBy": {
            "$ref": "#/components/schemas/User"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "lastUpdated": {
            "$ref": "#/components/schemas/Version"
          },
          "previousVersion": {
            "$ref": "#/components/schemas/Version"
          },
          "contributors": {
            "type": "object",
            "properties": {
              "publishers": {
                "$ref": "#/components/schemas/UsersUserKeys"
              }
            }
          },
          "nextVersion": {
            "$ref": "#/components/schemas/Version"
          },
          "_expandable": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "lastUpdated": {
                "type": "string"
              },
              "previousVersion": {
                "type": "string"
              },
              "contributors": {
                "type": "string"
              },
              "nextVersion": {
                "type": "string"
              }
            }
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "ContentId": {
        "type": "string"
      },
      "ContentLookAndFeel": {
        "type": "object",
        "required": [
          "screen",
          "container",
          "header",
          "body"
        ],
        "properties": {
          "screen": {
            "$ref": "#/components/schemas/ScreenLookAndFeel"
          },
          "container": {
            "$ref": "#/components/schemas/ContainerLookAndFeel"
          },
          "header": {
            "$ref": "#/components/schemas/ContainerLookAndFeel"
          },
          "body": {
            "$ref": "#/components/schemas/ContainerLookAndFeel"
          }
        }
      },
      "ContentMetadata": {
        "type": "object",
        "description": "Metadata object for page, blogpost, comment content",
        "properties": {
          "currentuser": {
            "type": "object",
            "properties": {
              "favourited": {
                "type": "object",
                "properties": {
                  "isFavourite": {
                    "type": "boolean"
                  },
                  "favouritedDate": {
                    "type": "string",
                    "format": "date-time"
                  }
                }
              },
              "lastmodified": {
                "type": "object",
                "properties": {
                  "version": {
                    "$ref": "#/components/schemas/Version"
                  },
                  "friendlyLastModified": {
                    "type": "string"
                  }
                }
              },
              "lastcontributed": {
                "type": "object",
                "properties": {
                  "status": {
                    "type": "string"
                  },
                  "when": {
                    "type": "string",
                    "format": "date-time"
                  }
                }
              },
              "viewed": {
                "type": "object",
                "properties": {
                  "lastSeen": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "friendlyLastSeen": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "properties": {
            "$ref": "#/components/schemas/GenericLinks"
          },
          "frontend": {
            "type": "object"
          },
          "labels": {
            "$ref": "#/components/schemas/LabelArray"
          }
        },
        "additionalProperties": false
      },
      "ContentPage": {
        "description": "Representation of a page (content)",
        "allOf": [
          {
            "$ref": "#/components/schemas/Content"
          },
          {
            "type": "object",
            "required": [
              "metadata",
              "extensions",
              "_links"
            ],
            "properties": {
              "metadata": {
                "$ref": "#/components/schemas/ContentMetadata"
              },
              "extensions": {
                "type": "object",
                "properties": {
                  "position": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              },
              "_links": {
                "$ref": "#/components/schemas/GenericLinks"
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "ContentProperty": {
        "type": "object",
        "required": [
          "id",
          "key",
          "value",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "format": "int32"
          },
          "key": {
            "type": "string"
          },
          "value": {
            "type": "object",
            "description": "The value of the content property. This can be empty or a complex object.",
            "additionalProperties": true
          },
          "version": {
            "type": "object",
            "required": [
              "when",
              "message",
              "number",
              "minorEdit"
            ],
            "additionalProperties": false,
            "properties": {
              "when": {
                "type": "string",
                "format": "date-time"
              },
              "message": {
                "type": "string"
              },
              "number": {
                "type": "integer",
                "format": "int32"
              },
              "minorEdit": {
                "type": "boolean"
              }
            }
          },
          "content": {
            "$ref": "#/components/schemas/Content"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "ContentPropertyArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentProperty"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "ContentPropertyCreate": {
        "type": "object",
        "required": [
          "key",
          "value"
        ],
        "additionalProperties": false,
        "properties": {
          "key": {
            "type": "string",
            "description": "The key of the new property.",
            "maxLength": 255
          },
          "value": {
            "$ref": "#/components/schemas/PropertyValue"
          }
        }
      },
      "ContentPropertyCreateNoKey": {
        "type": "object",
        "required": [
          "value"
        ],
        "additionalProperties": false,
        "properties": {
          "value": {
            "$ref": "#/components/schemas/PropertyValue"
          }
        }
      },
      "ContentPropertyUpdate": {
        "type": "object",
        "required": [
          "value",
          "version"
        ],
        "additionalProperties": false,
        "properties": {
          "value": {
            "type": "object",
            "description": "The value of the property.",
            "minProperties": 1,
            "maxProperties": 1,
            "additionalProperties": {
              "type": "string"
            }
          },
          "version": {
            "type": "object",
            "description": "The version number of the property.",
            "required": [
              "number"
            ],
            "additionalProperties": false,
            "properties": {
              "number": {
                "type": "integer",
                "format": "int32",
                "description": "The new version for the updated content property. Set this to the\ncurrent version number incremented by one. To get the current\nversion number, use 'Get content property' and retrieve\n`version.number`."
              },
              "minorEdit": {
                "type": "boolean",
                "description": "If `minorEdit` is set to 'true', no notification email or activity\nstream will be generated for the change.",
                "default": true
              }
            }
          }
        }
      },
      "ContentRestriction": {
        "type": "object",
        "required": [
          "operation",
          "_expandable",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "operation": {
            "type": "string",
            "enum": [
              "administer",
              "copy",
              "create",
              "delete",
              "export",
              "move",
              "purge",
              "purge_version",
              "read",
              "restore",
              "update",
              "use"
            ]
          },
          "restrictions": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "user": {
                "$ref": "#/components/schemas/UserArray"
              },
              "group": {
                "$ref": "#/components/schemas/GroupArray"
              },
              "_expandable": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "user": {
                    "type": "string"
                  },
                  "group": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "content": {
            "$ref": "#/components/schemas/Content"
          },
          "_expandable": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "restrictions": {
                "type": "string"
              },
              "content": {
                "type": "string"
              }
            }
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "ContentRestrictionArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "restrictionsHash",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentRestriction"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "restrictionsHash": {
            "type": "string",
            "description": "This property is used by the UI to figure out whether a set of restrictions\nhas changed."
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "ContentRestrictionUpdate": {
        "type": "object",
        "required": [
          "operation",
          "restrictions"
        ],
        "additionalProperties": false,
        "properties": {
          "operation": {
            "type": "string",
            "description": "The restriction operation applied to content.",
            "enum": [
              "administer",
              "copy",
              "create",
              "delete",
              "export",
              "move",
              "purge",
              "purge_version",
              "read",
              "restore",
              "update",
              "use"
            ]
          },
          "restrictions": {
            "type": "object",
            "description": "The users/groups that the restrictions will be applied to. At least one of\n`user` or `group` must be specified for this object.",
            "additionalProperties": false,
            "properties": {
              "user": {
                "type": "array",
                "description": "The users that the restrictions will be applied to. This array must\nhave at least one item, otherwise it should be omitted.",
                "items": {
                  "type": "object",
                  "description": "A user that the restriction will be applied to. Either the `username`\nor the `userKey` must be specified to identify the user.",
                  "required": [
                    "type"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "Set to 'known'.",
                      "enum": [
                        "known",
                        "unknown",
                        "anonymous",
                        "user"
                      ]
                    },
                    "username": {
                      "type": "string",
                      "description": "This property has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe username of the user. For example, _admin_. Required, unless `accountId` or `userKey` is specified."
                    },
                    "userKey": {
                      "type": "string",
                      "description": "This property has been deprecated due to privacy changes. Use `accountId` instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe user key of the user. Required, unless `accountId` or `username` is specified."
                    },
                    "accountId": {
                      "type": "string",
                      "description": "The account ID of the user, which uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`. Required, unless `username` or `userKey` is specified."
                    }
                  }
                }
              },
              "group": {
                "type": "array",
                "description": "The groups that the restrictions will be applied to. This array must\nhave at least one item, otherwise it should be omitted.",
                "items": {
                  "type": "object",
                  "description": "A group that the restriction will be applied to.",
                  "required": [
                    "type",
                    "name"
                  ],
                  "additionalProperties": false,
                  "properties": {
                    "type": {
                      "type": "string",
                      "description": "Set to 'group'.",
                      "enum": [
                        "group"
                      ]
                    },
                    "name": {
                      "type": "string",
                      "description": "The name of the group."
                    }
                  }
                }
              }
            }
          }
        }
      },
      "ContentRestrictionUpdateArray": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/ContentRestrictionUpdate"
        }
      },
      "ContentTemplate": {
        "type": "object",
        "required": [
          "templateId",
          "name",
          "description",
          "labels",
          "templateType",
          "_expandable",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "templateId": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            }
          },
          "templateType": {
            "type": "string"
          },
          "body": {
            "$ref": "#/components/schemas/ContentBody"
          },
          "_expandable": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "body": {
                "type": "string"
              }
            }
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "ContentTemplateArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContentTemplate"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "ContentTemplateCreate": {
        "type": "object",
        "description": "This object is used to create content templates.",
        "required": [
          "name",
          "templateType",
          "body"
        ],
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the new template."
          },
          "templateType": {
            "type": "string",
            "description": "The type of the new template. Set to `page`."
          },
          "body": {
            "$ref": "#/components/schemas/ContentBodyCreate"
          },
          "description": {
            "type": "string",
            "description": "A description of the new template.",
            "maxLength": 255
          },
          "labels": {
            "type": "array",
            "description": "Labels for the new template.",
            "items": {
              "$ref": "#/components/schemas/Label"
            }
          },
          "space": {
            "type": "object",
            "description": "The key for the space of the new template. Only applies to space templates.\nIf the spaceKey is not specified, the template will be created as a global\ntemplate.",
            "required": [
              "key"
            ],
            "additionalProperties": false,
            "properties": {
              "key": {
                "type": "string"
              }
            }
          }
        }
      },
      "ContentTemplateUpdate": {
        "type": "object",
        "description": "This object is used to update content templates.",
        "required": [
          "templateId",
          "name",
          "templateType",
          "body"
        ],
        "additionalProperties": false,
        "properties": {
          "templateId": {
            "type": "string",
            "description": "The ID of the template being updated."
          },
          "name": {
            "type": "string",
            "description": "The name of the template. Set to the current `name` if this field is\nnot being updated."
          },
          "templateType": {
            "type": "string",
            "description": "The type of the template. Set to `page`.",
            "enum": [
              "page"
            ]
          },
          "body": {
            "$ref": "#/components/schemas/ContentBodyCreate"
          },
          "description": {
            "type": "string",
            "description": "A description of the template.",
            "maxLength": 100
          },
          "labels": {
            "type": "array",
            "description": "Labels for the template.",
            "items": {
              "$ref": "#/components/schemas/Label"
            }
          },
          "space": {
            "type": "object",
            "description": "The key for the space of the template. Required if the template is a\nspace template. Set this to the current `space.key`.",
            "required": [
              "key"
            ],
            "additionalProperties": false,
            "properties": {
              "key": {
                "type": "string"
              }
            }
          }
        }
      },
      "ContentUpdate": {
        "type": "object",
        "required": [
          "version",
          "title",
          "type"
        ],
        "additionalProperties": false,
        "properties": {
          "version": {
            "type": "object",
            "required": [
              "number"
            ],
            "additionalProperties": false,
            "description": "The new version for the updated content. Set this to the current version number incremented by one, unless you are changing the status to 'draft' which must have a version number of 1.\n\nTo get the current version number, use [Get content by ID](#api-content-id-get) and retrieve `version.number`.",
            "properties": {
              "number": {
                "type": "integer",
                "format": "int32",
                "description": "The version number."
              }
            }
          },
          "title": {
            "type": "string",
            "description": "The updated title of the content. If you are not changing this field, set this to the current `title`.",
            "maxLength": 255
          },
          "type": {
            "type": "string",
            "description": "The type of content. Set this to the current type of the content.",
            "enum": [
              "page",
              "blogpost",
              "comment",
              "attachment"
            ]
          },
          "status": {
            "type": "string",
            "description": "The updated status of the content. Note, if you change the status of a page from\n'current' to 'draft' and it has an existing draft, the existing draft will be deleted\nin favor of the updated page.",
            "enum": [
              "current",
              "trashed",
              "historical",
              "draft"
            ]
          },
          "ancestors": {
            "type": "array",
            "description": "The new parent for the content. Only one parent content 'id' can be specified.",
            "items": {
              "type": "object",
              "required": [
                "id"
              ],
              "additionalProperties": false,
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The `id` of the parent content."
                }
              }
            }
          },
          "body": {
            "type": "object",
            "description": "The updated body of the content. Does not apply to attachments.\nIf you are not sure how to generate these formats, you can create a page in the\nConfluence application, retrieve the content using [Get content](#api-content-get),\nand expand the desired content format, e.g. `expand=body.storage`.",
            "minProperties": 1,
            "maxProperties": 1,
            "additionalProperties": false,
            "properties": {
              "view": {
                "$ref": "#/components/schemas/ContentBodyCreate"
              },
              "export_view": {
                "$ref": "#/components/schemas/ContentBodyCreate"
              },
              "styled_view": {
                "$ref": "#/components/schemas/ContentBodyCreate"
              },
              "storage": {
                "$ref": "#/components/schemas/ContentBodyCreate"
              },
              "editor2": {
                "$ref": "#/components/schemas/ContentBodyCreate"
              },
              "anonymous_export_view": {
                "$ref": "#/components/schemas/ContentBodyCreate"
              }
            }
          }
        }
      },
      "CopyPageHierarchy": {
        "type": "object",
        "properties": {
          "copyAttachments": {
            "type": "boolean"
          },
          "copyPermissions": {
            "type": "boolean"
          },
          "copyProperties": {
            "type": "boolean"
          },
          "copyLabels": {
            "type": "boolean"
          },
          "originalPageId": {
            "$ref": "#/components/schemas/ContentId"
          },
          "destinationPageId": {
            "$ref": "#/components/schemas/ContentId"
          },
          "titleOptions": {
            "$ref": "#/components/schemas/CopyPageHierarchyTitleOptions"
          }
        }
      },
      "CopyPageHierarchyTitleOptions": {
        "type": "object",
        "properties": {
          "prefix": {
            "type": "string"
          },
          "replace": {
            "type": "string"
          },
          "search": {
            "type": "string"
          }
        }
      },
      "CQLPersonalDataConvertedQueries": {
        "type": "object",
        "required": [
          "queryStrings"
        ],
        "description": "The converted CQL queries.",
        "additionalProperties": false,
        "properties": {
          "queryStrings": {
            "type": "array",
            "description": "The list of converted CQL query strings with account IDs in\nplace of user identifiers.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CQLPersonalDataMigrationRequest": {
        "type": "object",
        "required": [
          "queryStrings"
        ],
        "description": "The CQL queries to be converted.",
        "additionalProperties": false,
        "properties": {
          "queryStrings": {
            "type": "array",
            "description": "A list of queries with user identifiers. Maximum of 100 queries.",
            "items": {
              "type": "string"
            },
            "example": [
              "type = page and creator != admin and space = DEV"
            ]
          }
        }
      },
      "Embeddable": {
        "type": "object"
      },
      "EmbeddedContent": {
        "type": "object",
        "properties": {
          "entityId": {
            "type": "integer",
            "format": "int64"
          },
          "entity": {
            "$ref": "#/components/schemas/Embeddable"
          }
        }
      },
      "GenericLinks": {
        "type": "object",
        "additionalProperties": {
          "type": "string"
        }
      },
      "Group": {
        "type": "object",
        "required": [
          "type",
          "name",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "group"
            ],
            "default": "group"
          },
          "name": {
            "type": "string"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "GroupArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Group"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "GroupArrayWithLinks": {
        "description": "Same as GroupArray but with `_links` property.",
        "allOf": [
          {
            "$ref": "#/components/schemas/GroupArray"
          },
          {
            "type": "object",
            "required": [
              "_links"
            ],
            "additionalProperties": false,
            "properties": {
              "_links": {
                "$ref": "#/components/schemas/GenericLinks"
              }
            }
          }
        ]
      },
      "HeaderLookAndFeel": {
        "type": "object",
        "required": [
          "backgroundColor",
          "button",
          "primaryNavigation",
          "secondaryNavigation",
          "search"
        ],
        "additionalProperties": false,
        "properties": {
          "backgroundColor": {
            "type": "string"
          },
          "button": {
            "$ref": "#/components/schemas/ButtonLookAndFeel"
          },
          "primaryNavigation": {
            "$ref": "#/components/schemas/NavigationLookAndFeel"
          },
          "secondaryNavigation": {
            "$ref": "#/components/schemas/NavigationLookAndFeel"
          },
          "search": {
            "$ref": "#/components/schemas/SearchFieldLookAndFeel"
          }
        }
      },
      "Icon": {
        "type": "object",
        "description": "This object represents an icon. If used as a profilePicture, this may be returned as null, depending on the user's privacy setting.",
        "required": [
          "path",
          "width",
          "height",
          "isDefault"
        ],
        "additionalProperties": false,
        "properties": {
          "path": {
            "type": "string"
          },
          "width": {
            "type": "integer",
            "format": "int32"
          },
          "height": {
            "type": "integer",
            "format": "int32"
          },
          "isDefault": {
            "type": "boolean"
          }
        }
      },
      "Label": {
        "type": "object",
        "required": [
          "prefix",
          "name",
          "id",
          "label"
        ],
        "additionalProperties": false,
        "properties": {
          "prefix": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        }
      },
      "LabelArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "LabelCreate": {
        "type": "object",
        "required": [
          "prefix",
          "name"
        ],
        "additionalProperties": false,
        "properties": {
          "prefix": {
            "type": "string",
            "description": "The prefix for the label.",
            "enum": [
              "global",
              "my",
              "team"
            ]
          },
          "name": {
            "type": "string",
            "description": "The name of the label, which will be shown in the UI."
          }
        }
      },
      "LabelCreateArray": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/LabelCreate"
        }
      },
      "LookAndFeel": {
        "type": "object",
        "required": [
          "headings",
          "links",
          "menus",
          "header",
          "content",
          "bordersAndDividers"
        ],
        "additionalProperties": false,
        "properties": {
          "headings": {
            "type": "object",
            "required": [
              "color"
            ],
            "additionalProperties": false,
            "properties": {
              "color": {
                "type": "string"
              }
            }
          },
          "links": {
            "type": "object",
            "required": [
              "color"
            ],
            "additionalProperties": false,
            "properties": {
              "color": {
                "type": "string"
              }
            }
          },
          "menus": {
            "$ref": "#/components/schemas/MenusLookAndFeel"
          },
          "header": {
            "$ref": "#/components/schemas/HeaderLookAndFeel"
          },
          "content": {
            "$ref": "#/components/schemas/ContentLookAndFeel"
          },
          "bordersAndDividers": {
            "type": "object",
            "required": [
              "color"
            ],
            "additionalProperties": false,
            "properties": {
              "color": {
                "type": "string"
              }
            }
          }
        }
      },
      "LookAndFeelUpdated": {
        "description": "Look and feel settings returned after an update.",
        "allOf": [
          {
            "$ref": "#/components/schemas/LookAndFeel"
          },
          {
            "type": "object",
            "required": [
              "_links"
            ],
            "additionalProperties": false,
            "properties": {
              "_links": {
                "$ref": "#/components/schemas/GenericLinks"
              }
            }
          }
        ]
      },
      "LookAndFeelSettings": {
        "type": "object",
        "required": [
          "selected",
          "global",
          "custom"
        ],
        "additionalProperties": false,
        "properties": {
          "selected": {
            "type": "string",
            "enum": [
              "global",
              "custom"
            ]
          },
          "global": {
            "$ref": "#/components/schemas/LookAndFeel"
          },
          "theme": {
            "$ref": "#/components/schemas/LookAndFeel"
          },
          "custom": {
            "$ref": "#/components/schemas/LookAndFeel"
          }
        }
      },
      "LookAndFeelType": {
        "type": "object",
        "description": "The object for choosing the look and feel settings for the site or a space.",
        "required": [
          "selected"
        ],
        "additionalProperties": false,
        "properties": {
          "selected": {
            "type": "string",
            "description": "The look and feel scheme. If you set this to `global`, you must specify\nthe current global look and feel settings as a `global` object in this\nrequest. Similarly, if you set this to `custom`, you must specify the\ncurrent custom look and feel settings as a `custom` object in this request.",
            "enum": [
              "global",
              "custom"
            ]
          },
          "global": {
            "$ref": "#/components/schemas/LookAndFeel"
          },
          "custom": {
            "$ref": "#/components/schemas/LookAndFeel"
          }
        }
      },
      "LongTaskStatus": {
        "type": "object",
        "required": [
          "id",
          "name",
          "elapsedTime",
          "percentageComplete",
          "successful",
          "messages"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "object",
            "required": [
              "key",
              "args"
            ],
            "additionalProperties": false,
            "properties": {
              "key": {
                "type": "string"
              },
              "args": {
                "type": "array",
                "items": {
                  "type": "object"
                }
              }
            }
          },
          "elapsedTime": {
            "type": "integer",
            "format": "int64"
          },
          "percentageComplete": {
            "type": "integer",
            "format": "int32"
          },
          "successful": {
            "type": "boolean"
          },
          "messages": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Message"
            }
          }
        }
      },
      "LongTaskStatusArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LongTaskStatus"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "LongTaskStatusWithLinks": {
        "description": "Same as LongTaskStatus but with `_links` property.",
        "allOf": [
          {
            "$ref": "#/components/schemas/LongTaskStatus"
          },
          {
            "type": "object",
            "required": [
              "_links"
            ],
            "additionalProperties": false,
            "properties": {
              "_links": {
                "$ref": "#/components/schemas/GenericLinks"
              }
            }
          }
        ]
      },
      "MacroInstance": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "body": {
            "type": "string"
          },
          "parameters": {
            "type": "object",
            "additionalProperties": true
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "MenusLookAndFeel": {
        "type": "object",
        "required": [
          "hoverOrFocus",
          "color"
        ],
        "additionalProperties": false,
        "properties": {
          "hoverOrFocus": {
            "type": "object",
            "required": [
              "backgroundColor"
            ],
            "additionalProperties": false,
            "properties": {
              "backgroundColor": {
                "type": "string"
              }
            }
          },
          "color": {
            "type": "string"
          }
        }
      },
      "Message": {
        "type": "object",
        "required": [
          "translation",
          "args"
        ],
        "additionalProperties": false,
        "properties": {
          "translation": {
            "type": "string"
          },
          "args": {
            "type": "array",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MigratedUser": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "username": {
            "type": "string"
          },
          "key": {
            "type": "string"
          },
          "accountId": {
            "type": "string"
          }
        }
      },
      "MigratedUserArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "_links"
        ],
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MigratedUser"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "BulkUserLookup": {
        "type": "object",
        "required": [
          "type",
          "username",
          "userKey",
          "accountId",
          "accountType",
          "email",
          "publicName",
          "profilePicture",
          "displayName",
          "_expandable",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "known",
              "unknown",
              "anonymous",
              "user"
            ]
          },
          "username": {
            "type": "string",
            "description": "This property has been deprecated in favor of `accountId`, due to privacy changes. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe username of the user. For example, _admin_."
          },
          "userKey": {
            "type": "string",
            "description": "This property has been deprecated in favor of `accountId`, due to privacy changes. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe user key of the user."
          },
          "accountId": {
            "type": "string",
            "description": "The account ID of the user, which uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`."
          },
          "accountType": {
            "type": "string",
            "description": "The account type of the user, may return empty string if unavailable."
          },
          "email": {
            "type": "string",
            "description": "The email address of the user. Depending on the user's privacy setting, this may return an empty string."
          },
          "publicName": {
            "type": "string",
            "description": "The public name or nickname of the user. Will always contain a value."
          },
          "profilePicture": {
            "$ref": "#/components/schemas/Icon"
          },
          "displayName": {
            "type": "string",
            "description": "The display name of the user. Depending on the user's privacy setting, this may be the same as publicName."
          },
          "operations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationCheckResult"
            }
          },
          "details": {
            "$ref": "#/components/schemas/UserDetails"
          },
          "personalSpace": {
            "$ref": "#/components/schemas/Space"
          },
          "_expandable": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "operations": {
                "type": "string"
              },
              "details": {
                "type": "string"
              },
              "personalSpace": {
                "type": "string"
              }
            }
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "BulkUserLookupArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "_links"
        ],
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BulkUserLookup"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "NavigationLookAndFeel": {
        "type": "object",
        "required": [
          "color",
          "hoverOrFocus"
        ],
        "properties": {
          "color": {
            "type": "string"
          },
          "hoverOrFocus": {
            "type": "object",
            "required": [
              "backgroundColor",
              "color"
            ],
            "additionalProperties": false,
            "properties": {
              "backgroundColor": {
                "type": "string"
              },
              "color": {
                "type": "string"
              }
            }
          }
        }
      },
      "OperationCheckResult": {
        "type": "object",
        "description": "An operation and the target entity that it applies to, e.g. create page.",
        "required": [
          "operation",
          "targetType"
        ],
        "additionalProperties": false,
        "properties": {
          "operation": {
            "type": "string",
            "description": "The operation itself.",
            "enum": [
              "administer",
              "copy",
              "create",
              "delete",
              "export",
              "move",
              "purge",
              "purge_version",
              "read",
              "restore",
              "update",
              "use"
            ]
          },
          "targetType": {
            "type": "string",
            "description": "The space or content type that the operation applies to.",
            "enum": [
              "page",
              "blogpost",
              "comment",
              "attachment",
              "space"
            ]
          }
        }
      },
      "PropertyValue": {
        "type": "object",
        "description": "The value of the property. This can be empty or a complex object.\nFor example,\n```\n\"value\": {\n  \"example1\": \"value\",\n  \"example2\": true,\n  \"example3\": 123\n}\n```",
        "additionalProperties": true
      },
      "Relation": {
        "type": "object",
        "required": [
          "name",
          "_expandable",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string"
          },
          "relationData": {
            "$ref": "#/components/schemas/RelationData"
          },
          "source": {
            "type": "object",
            "additionalProperties": true
          },
          "target": {
            "type": "object",
            "additionalProperties": true
          },
          "_expandable": {
            "type": "object",
            "required": [
              "relationData",
              "source",
              "target"
            ],
            "additionalProperties": false,
            "properties": {
              "relationData": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "target": {
                "type": "string"
              }
            }
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "RelationArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Relation"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "RelationData": {
        "type": "object",
        "properties": {
          "createdBy": {
            "$ref": "#/components/schemas/User"
          },
          "createdDate": {
            "type": "string",
            "format": "date-time"
          },
          "friendlyCreatedDate": {
            "type": "string"
          }
        }
      },
      "RetentionPeriod": {
        "type": "object",
        "required": [
          "number",
          "units"
        ],
        "additionalProperties": false,
        "properties": {
          "number": {
            "type": "integer",
            "description": "The number of units for the retention period.",
            "format": "int32"
          },
          "units": {
            "type": "string",
            "description": "The unit of time that the retention period is measured in.",
            "enum": [
              "NANOS",
              "MICROS",
              "MILLIS",
              "SECONDS",
              "MINUTES",
              "HOURS",
              "HALF_DAYS",
              "DAYS",
              "WEEKS",
              "MONTHS",
              "YEARS",
              "DECADES",
              "CENTURIES",
              "MILLENNIA",
              "ERAS",
              "FOREVER"
            ]
          }
        }
      },
      "ScreenLookAndFeel": {
        "type": "object",
        "required": [
          "background",
          "backgroundColor",
          "backgroundImage",
          "backgroundSize",
          "gutterTop",
          "gutterRight",
          "gutterBottom",
          "gutterLeft"
        ],
        "additionalProperties": false,
        "properties": {
          "background": {
            "type": "string"
          },
          "backgroundColor": {
            "type": "string"
          },
          "backgroundImage": {
            "type": "string"
          },
          "backgroundSize": {
            "type": "string"
          },
          "gutterTop": {
            "type": "string"
          },
          "gutterRight": {
            "type": "string"
          },
          "gutterBottom": {
            "type": "string"
          },
          "gutterLeft": {
            "type": "string"
          }
        }
      },
      "SearchFieldLookAndFeel": {
        "type": "object",
        "required": [
          "backgroundColor",
          "color"
        ],
        "additionalProperties": false,
        "properties": {
          "backgroundColor": {
            "type": "string"
          },
          "color": {
            "type": "string"
          }
        }
      },
      "SearchPageResponseSearchResult": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "totalSize",
          "cqlQuery",
          "searchDuration",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SearchResult"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "totalSize": {
            "type": "integer",
            "format": "int32"
          },
          "cqlQuery": {
            "type": "string"
          },
          "searchDuration": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "SearchResult": {
        "type": "object",
        "required": [
          "content",
          "title",
          "excerpt",
          "url",
          "resultParentContainer",
          "resultGlobalContainer",
          "breadcrumbs",
          "entityType",
          "iconCssClass",
          "lastModified",
          "friendlyLastModified"
        ],
        "additionalProperties": false,
        "properties": {
          "content": {
            "$ref": "#/components/schemas/Content"
          },
          "title": {
            "type": "string"
          },
          "excerpt": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "resultParentContainer": {
            "$ref": "#/components/schemas/ContainerSummary"
          },
          "resultGlobalContainer": {
            "$ref": "#/components/schemas/ContainerSummary"
          },
          "breadcrumbs": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Breadcrumb"
            }
          },
          "entityType": {
            "type": "string"
          },
          "iconCssClass": {
            "type": "string"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time"
          },
          "friendlyLastModified": {
            "type": "string"
          }
        }
      },
      "Space": {
        "type": "object",
        "required": [
          "id",
          "key",
          "name",
          "type",
          "status",
          "_expandable",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "key": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "icon": {
            "$ref": "#/components/schemas/Icon"
          },
          "description": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "plain": {
                "$ref": "#/components/schemas/SpaceDescription"
              },
              "view": {
                "$ref": "#/components/schemas/SpaceDescription"
              }
            }
          },
          "homepage": {
            "$ref": "#/components/schemas/Content"
          },
          "type": {
            "type": "string"
          },
          "metadata": {
            "type": "object",
            "required": [
              "labels"
            ],
            "additionalProperties": false,
            "properties": {
              "labels": {
                "$ref": "#/components/schemas/LabelArray"
              }
            }
          },
          "operations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationCheckResult"
            }
          },
          "permissions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpacePermission"
            }
          },
          "status": {
            "type": "string"
          },
          "settings": {
            "$ref": "#/components/schemas/SpaceSettings"
          },
          "theme": {
            "$ref": "#/components/schemas/Theme"
          },
          "lookAndFeel": {
            "$ref": "#/components/schemas/LookAndFeel"
          },
          "history": {
            "type": "object",
            "required": [
              "createdDate"
            ],
            "additionalProperties": false,
            "properties": {
              "createdDate": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "_expandable": {
            "type": "object",
            "properties": {
              "settings": {
                "type": "string"
              },
              "metadata": {
                "type": "string"
              },
              "operations": {
                "type": "string"
              },
              "lookAndFeel": {
                "type": "string"
              },
              "permissions": {
                "type": "string"
              },
              "icon": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "theme": {
                "type": "string"
              },
              "history": {
                "type": "string"
              },
              "homepage": {
                "type": "string"
              }
            }
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "SpaceArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Space"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "SpaceCreate": {
        "type": "object",
        "description": "This is the request object used when creating a new space.",
        "required": [
          "key",
          "name"
        ],
        "additionalProperties": false,
        "properties": {
          "key": {
            "type": "string",
            "description": "The key for the new space. Format: See [Space\nkeys](https://confluence.atlassian.com/x/lqNMMQ)."
          },
          "name": {
            "type": "string",
            "description": "The name of the new space.",
            "maxLength": 200
          },
          "description": {
            "$ref": "#/components/schemas/SpaceDescriptionCreate"
          },
          "permissions": {
            "type": "array",
            "description": "The permissions for the new space. If no permissions are provided, the\n[Confluence default space permissions](https://confluence.atlassian.com/x/UAgzKw#CreateaSpace-Spacepermissions)\nare applied. Note, for security reasons, permissions cannot be changed\nvia the API after the space has been created, and must be changed via\nthe user interface instead.",
            "items": {
              "$ref": "#/components/schemas/SpacePermission"
            }
          }
        }
      },
      "SpaceDescription": {
        "type": "object",
        "required": [
          "value",
          "representation",
          "embeddedContent"
        ],
        "additionalProperties": false,
        "properties": {
          "value": {
            "type": "string"
          },
          "representation": {
            "type": "string",
            "enum": [
              "plain",
              "view"
            ]
          },
          "embeddedContent": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        }
      },
      "SpaceDescriptionCreate": {
        "type": "object",
        "description": "The description of the new/updated space. Note, only the 'plain' representation\ncan be used for the description when creating or updating a space.",
        "required": [
          "plain"
        ],
        "additionalProperties": false,
        "properties": {
          "plain": {
            "type": "object",
            "properties": {
              "value": {
                "type": "string",
                "description": "The space description."
              },
              "representation": {
                "type": "string",
                "description": "Set to 'plain'."
              }
            }
          }
        }
      },
      "SpacePermission": {
        "type": "object",
        "description": "This object represents the permissions for a space. Permissions consist of\nat least one operation object with an accompanying subjects object.\n\nThe following combinations of `operation` and `targetType` values are\nvalid for the `operation` object:\n\n  - 'create': 'page', 'blogpost', 'comment', 'attachment'\n  - 'read': 'space'\n  - 'delete': 'page', 'blogpost', 'comment', 'attachment'\n  - 'export': 'space'\n  - 'administer': 'space'",
        "required": [
          "subjects",
          "operation",
          "anonymousAccess",
          "unlicensedAccess"
        ],
        "additionalProperties": false,
        "properties": {
          "subjects": {
            "type": "object",
            "description": "The users and/or groups that the permission applies to.",
            "required": [
              "_expandable"
            ],
            "additionalProperties": false,
            "properties": {
              "user": {
                "type": "object",
                "required": [
                  "results",
                  "size"
                ],
                "additionalProperties": false,
                "properties": {
                  "results": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/User"
                    }
                  },
                  "size": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              },
              "group": {
                "type": "object",
                "required": [
                  "results",
                  "size"
                ],
                "additionalProperties": false,
                "properties": {
                  "results": {
                    "type": "array",
                    "items": {
                      "$ref": "#/components/schemas/Group"
                    }
                  },
                  "size": {
                    "type": "integer",
                    "format": "int32"
                  }
                }
              },
              "_expandable": {
                "type": "object",
                "properties": {
                  "user": {
                    "type": "string"
                  },
                  "group": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "operation": {
            "$ref": "#/components/schemas/OperationCheckResult"
          },
          "anonymousAccess": {
            "type": "boolean",
            "description": "Grant anonymous users permission to use the operation.",
            "default": false
          },
          "unlicensedAccess": {
            "type": "boolean",
            "description": "Grants access to unlicensed users from JIRA Service Desk when used\nwith the 'read space' operation.",
            "default": false
          }
        }
      },
      "SpacePrivateCreate": {
        "type": "object",
        "description": "This is the request object used when creating a new private space.",
        "required": [
          "key",
          "name"
        ],
        "additionalProperties": false,
        "properties": {
          "key": {
            "type": "string",
            "description": "The key for the new space. Format: See [Space\nkeys](https://confluence.atlassian.com/x/lqNMMQ)."
          },
          "name": {
            "type": "string",
            "description": "The name of the new space.",
            "maxLength": 200
          },
          "description": {
            "$ref": "#/components/schemas/SpaceDescriptionCreate"
          }
        }
      },
      "SpaceProperty": {
        "type": "object",
        "required": [
          "id",
          "key",
          "value",
          "_expandable"
        ],
        "additionalProperties": false,
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64"
          },
          "key": {
            "type": "string"
          },
          "value": {
            "type": "object",
            "additionalProperties": true
          },
          "version": {
            "type": "object",
            "required": [
              "when",
              "message",
              "number",
              "minorEdit"
            ],
            "additionalProperties": false,
            "properties": {
              "when": {
                "type": "string",
                "format": "date-time"
              },
              "message": {
                "type": "string"
              },
              "number": {
                "type": "integer"
              },
              "minorEdit": {
                "type": "boolean"
              }
            }
          },
          "space": {
            "$ref": "#/components/schemas/Space"
          },
          "_expandable": {
            "type": "object",
            "properties": {
              "version": {
                "type": "string"
              },
              "space": {
                "type": "string"
              }
            }
          }
        }
      },
      "SpacePropertyArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpaceProperty"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "SpacePropertyCreate": {
        "type": "object",
        "required": [
          "key",
          "value"
        ],
        "additionalProperties": false,
        "properties": {
          "key": {
            "type": "string",
            "description": "The key of the new property.",
            "maximum": 255
          },
          "value": {
            "$ref": "#/components/schemas/PropertyValue"
          }
        }
      },
      "SpacePropertyCreateNoKey": {
        "type": "object",
        "required": [
          "value"
        ],
        "additionalProperties": false,
        "properties": {
          "value": {
            "$ref": "#/components/schemas/PropertyValue"
          }
        }
      },
      "SpacePropertyUpdate": {
        "type": "object",
        "required": [
          "value",
          "version"
        ],
        "additionalProperties": false,
        "properties": {
          "value": {
            "type": "object",
            "description": "The value of the property.",
            "additionalProperties": true
          },
          "version": {
            "type": "object",
            "description": "The version number of the property.",
            "required": [
              "number"
            ],
            "additionalProperties": false,
            "properties": {
              "number": {
                "type": "integer",
                "format": "int32",
                "description": "The new version for the updated space property. Set this to the\ncurrent version number incremented by one. To get the current\nversion number, use 'Get space property' and retrieve\n`version.number`."
              },
              "minorEdit": {
                "type": "boolean",
                "description": "If `minorEdit` is set to 'true', no notification email or activity\nstream will be generated for the change.",
                "default": true
              }
            }
          }
        }
      },
      "SpaceSettings": {
        "type": "object",
        "required": [
          "routeOverrideEnabled",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "routeOverrideEnabled": {
            "type": "boolean",
            "description": "Defines whether an override for the space home should be used. This is\nused in conjunction with a space theme provided by an app. For\nexample, if this property is set to true, a theme can display a page\nother than the space homepage when users visit the root URL for a\nspace. This property allows apps to provide content-only theming\nwithout overriding the space home."
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "SpaceSettingsUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "routeOverrideEnabled": {
            "type": "boolean",
            "description": "Defines whether an override for the space home should be used. This is\nused in conjunction with a space theme provided by an app. For\nexample, if this property is set to true, a theme can display a page\nother than the space homepage when users visit the root URL for a\nspace. This property allows apps to provide content-only theming\nwithout overriding the space home."
          }
        }
      },
      "SpaceUpdate": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the space.",
            "maxLength": 200
          },
          "description": {
            "$ref": "#/components/schemas/SpaceDescriptionCreate"
          },
          "homepage": {
            "type": "object",
            "description": "The page to set as the homepage of the space.",
            "required": [
              "id"
            ],
            "additionalProperties": false,
            "properties": {
              "id": {
                "type": "string",
                "description": "The ID of the page."
              }
            }
          }
        }
      },
      "SpaceWatch": {
        "type": "object",
        "required": [
          "type",
          "watcher",
          "spaceKey"
        ],
        "additionalProperties": false,
        "properties": {
          "type": {
            "type": "string"
          },
          "watcher": {
            "$ref": "#/components/schemas/SpaceWatchUser"
          },
          "contentId": {
            "type": "string"
          },
          "spaceKey": {
            "type": "string"
          }
        }
      },
      "SpaceWatchArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SpaceWatch"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "SpaceWatchUser": {
        "type": "object",
        "description": "This essentially the same as the `User` object, but no `_links` property and\nno `_expandable` property (therefore, different required fields).",
        "required": [
          "type",
          "profilePicture",
          "displayName",
          "accountId",
          "accountType",
          "email",
          "publicName"
        ],
        "additionalProperties": false,
        "properties": {
          "type": {
            "type": "string"
          },
          "username": {
            "type": "string",
            "description": "This property has been deprecated in favor of `accountId`. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe username of the user. For example, _admin_."
          },
          "userKey": {
            "type": "string",
            "description": "This property has been deprecated in favor of `accountId`. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe user key of the user."
          },
          "accountId": {
            "type": "string",
            "description": "The account ID of the user, which uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`."
          },
          "profilePicture": {
            "$ref": "#/components/schemas/Icon"
          },
          "displayName": {
            "type": "string"
          },
          "operations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationCheckResult"
            }
          },
          "details": {
            "$ref": "#/components/schemas/UserDetails"
          },
          "accountType": {
            "type": "string"
          },
          "email": {
            "type": "string"
          },
          "publicName": {
            "type": "string"
          }
        }
      },
      "SuperBatchWebResources": {
        "type": "object",
        "properties": {
          "uris": {
            "type": "object",
            "properties": {
              "all": {
                "type": "string"
              },
              "css": {
                "type": "string"
              },
              "js": {
                "type": "string"
              }
            }
          },
          "tags": {
            "type": "object",
            "properties": {
              "all": {
                "type": "string"
              },
              "css": {
                "type": "string"
              },
              "data": {
                "type": "string"
              },
              "js": {
                "type": "string"
              }
            }
          },
          "metatags": {
            "type": "string"
          }
        }
      },
      "SystemInfoEntity": {
        "type": "object",
        "required": [
          "cloudId",
          "commitHash"
        ],
        "additionalProperties": false,
        "properties": {
          "cloudId": {
            "type": "string"
          },
          "commitHash": {
            "type": "string"
          }
        }
      },
      "Theme": {
        "allOf": [
          {
            "$ref": "#/components/schemas/ThemeNoLinks"
          },
          {
            "type": "object",
            "required": [
              "_links"
            ],
            "additionalProperties": false,
            "properties": {
              "_links": {
                "$ref": "#/components/schemas/GenericLinks"
              }
            }
          }
        ]
      },
      "ThemeArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ThemeNoLinks"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "ThemeNoLinks": {
        "type": "object",
        "description": "Theme object without links. Used in ThemeArray.",
        "required": [
          "themeKey",
          "name",
          "description",
          "icon"
        ],
        "additionalProperties": false,
        "properties": {
          "themeKey": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "icon": {
            "$ref": "#/components/schemas/Icon"
          }
        }
      },
      "ThemeUpdate": {
        "type": "object",
        "required": [
          "themeKey"
        ],
        "additionalProperties": false,
        "properties": {
          "themeKey": {
            "type": "string",
            "description": "The key of the theme to be set as the space theme."
          }
        }
      },
      "User": {
        "type": "object",
        "required": [
          "type",
          "username",
          "userKey",
          "accountId",
          "accountType",
          "email",
          "publicName",
          "profilePicture",
          "displayName",
          "_expandable",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "known",
              "unknown",
              "anonymous",
              "user"
            ]
          },
          "username": {
            "type": "string",
            "description": "This property has been deprecated in favor of `accountId`, due to privacy changes. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe username of the user. For example, _admin_."
          },
          "userKey": {
            "type": "string",
            "description": "This property has been deprecated in favor of `accountId`, due to privacy changes. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe user key of the user."
          },
          "accountId": {
            "type": "string",
            "description": "The account ID of the user, which uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`."
          },
          "accountType": {
            "type": "string",
            "enum": [
              "atlassian",
              "app (if this user is a bot user created on behalf of an Atlassian app)"
            ],
            "description": "The account type of the user, may return empty string if unavailable."
          },
          "email": {
            "type": "string",
            "description": "The email address of the user. Depending on the user's privacy setting, this may return an empty string."
          },
          "publicName": {
            "type": "string",
            "description": "The public name or nickname of the user. Will always contain a value."
          },
          "profilePicture": {
            "$ref": "#/components/schemas/Icon"
          },
          "displayName": {
            "type": "string",
            "description": "The display name of the user. Depending on the user's privacy setting, this may be the same as publicName."
          },
          "operations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationCheckResult"
            }
          },
          "details": {
            "$ref": "#/components/schemas/UserDetails"
          },
          "personalSpace": {
            "$ref": "#/components/schemas/Space"
          },
          "_expandable": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "operations": {
                "type": "string"
              },
              "details": {
                "type": "string"
              },
              "personalSpace": {
                "type": "string"
              }
            }
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "UserAnonymous": {
        "type": "object",
        "required": [
          "type",
          "profilePicture",
          "displayName",
          "_expandable",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "type": {
            "type": "string"
          },
          "profilePicture": {
            "$ref": "#/components/schemas/Icon"
          },
          "displayName": {
            "type": "string"
          },
          "operations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationCheckResult"
            }
          },
          "_expandable": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "operations": {
                "type": "string"
              }
            }
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "UserArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size"
        ],
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/User"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          }
        }
      },
      "UserArrayWithLinks": {
        "description": "Same as UserArray but with `_links` property.",
        "allOf": [
          {
            "$ref": "#/components/schemas/UserArray"
          },
          {
            "type": "object",
            "required": [
              "_links"
            ],
            "additionalProperties": false,
            "properties": {
              "_links": {
                "$ref": "#/components/schemas/GenericLinks"
              }
            }
          }
        ]
      },
      "UserDetails": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "business": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "position": {
                "type": "string",
                "description": "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
              },
              "department": {
                "type": "string",
                "description": "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
              },
              "location": {
                "type": "string",
                "description": "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
              }
            }
          },
          "personal": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "phone": {
                "type": "string",
                "description": "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
              },
              "im": {
                "type": "string",
                "description": "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
              },
              "website": {
                "type": "string",
                "description": "This property has been deprecated due to privacy changes. There is no replacement. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
              },
              "email": {
                "type": "string",
                "description": "This property has been deprecated due to privacy changes. Use the `User.email` property instead. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details."
              }
            }
          }
        }
      },
      "UsersUserKeys": {
        "type": "object",
        "required": [
          "users",
          "userKeys"
        ],
        "additionalProperties": false,
        "properties": {
          "users": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/User"
            }
          },
          "userKeys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "UserWatch": {
        "type": "object",
        "required": [
          "watching"
        ],
        "additionalProperties": false,
        "properties": {
          "watching": {
            "type": "boolean"
          }
        }
      },
      "Version": {
        "type": "object",
        "required": [
          "by",
          "when",
          "friendlyWhen",
          "message",
          "number",
          "minorEdit",
          "_expandable",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "by": {
            "$ref": "#/components/schemas/User"
          },
          "when": {
            "type": "string",
            "format": "date-time"
          },
          "friendlyWhen": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "number": {
            "type": "integer",
            "format": "int32"
          },
          "minorEdit": {
            "type": "boolean"
          },
          "content": {
            "$ref": "#/components/schemas/Content"
          },
          "collaborators": {
            "$ref": "#/components/schemas/UsersUserKeys"
          },
          "_expandable": {
            "type": "object",
            "required": [
              "content",
              "collaborators"
            ],
            "properties": {
              "content": {
                "type": "string"
              },
              "collaborators": {
                "type": "string"
              }
            }
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "VersionArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Version"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "VersionRestore": {
        "type": "object",
        "required": [
          "operationKey",
          "params"
        ],
        "additionalProperties": false,
        "properties": {
          "operationKey": {
            "type": "string",
            "description": "Set to 'RESTORE'.",
            "enum": [
              "RESTORE"
            ]
          },
          "params": {
            "type": "object",
            "required": [
              "versionNumber",
              "message"
            ],
            "additionalProperties": false,
            "properties": {
              "versionNumber": {
                "type": "integer",
                "description": "The version number to be restored.",
                "format": "int32"
              },
              "message": {
                "type": "string",
                "description": "Description for the version."
              }
            }
          }
        }
      },
      "Watch": {
        "type": "object",
        "required": [
          "type",
          "watcher",
          "contentId"
        ],
        "additionalProperties": false,
        "properties": {
          "type": {
            "type": "string"
          },
          "watcher": {
            "$ref": "#/components/schemas/WatchUser"
          },
          "contentId": {
            "type": "string"
          }
        }
      },
      "WatchArray": {
        "type": "object",
        "required": [
          "results",
          "start",
          "limit",
          "size",
          "_links"
        ],
        "additionalProperties": false,
        "properties": {
          "results": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Watch"
            }
          },
          "start": {
            "type": "integer",
            "format": "int32"
          },
          "limit": {
            "type": "integer",
            "format": "int32"
          },
          "size": {
            "type": "integer",
            "format": "int32"
          },
          "_links": {
            "$ref": "#/components/schemas/GenericLinks"
          }
        }
      },
      "WatchUser": {
        "type": "object",
        "description": "This essentially the same as the `User` object, but no `_links` property and\nno `_expandable` property (therefore, different required fields).",
        "required": [
          "type",
          "profilePicture",
          "username",
          "displayName",
          "userKey",
          "operations",
          "accountId",
          "details"
        ],
        "additionalProperties": false,
        "properties": {
          "type": {
            "type": "string"
          },
          "username": {
            "type": "string",
            "description": "This property has been deprecated in favor of `accountId`. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe username of the user. For example, _admin_."
          },
          "userKey": {
            "type": "string",
            "description": "This property has been deprecated in favor of `accountId`. See the\n[migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\nfor details.\n\nThe user key of the user."
          },
          "accountId": {
            "type": "string",
            "description": "The account ID of the user, which uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`."
          },
          "profilePicture": {
            "$ref": "#/components/schemas/Icon"
          },
          "displayName": {
            "type": "string"
          },
          "operations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationCheckResult"
            }
          },
          "details": {
            "$ref": "#/components/schemas/UserDetails"
          }
        }
      },
      "WebResourceDependencies": {
        "type": "object",
        "properties": {
          "keys": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "contexts": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "uris": {
            "type": "object",
            "properties": {
              "all": {
                "type": "string"
              },
              "css": {
                "type": "string"
              },
              "js": {
                "type": "string"
              }
            }
          },
          "tags": {
            "type": "object",
            "properties": {
              "all": {
                "type": "string"
              },
              "css": {
                "type": "string"
              },
              "data": {
                "type": "string"
              },
              "js": {
                "type": "string"
              }
            }
          },
          "superbatch": {
            "$ref": "#/components/schemas/SuperBatchWebResources"
          }
        }
      }
    }
  }
}
