{
  "opencollection": "1.0.0",
  "info": {
    "name": "Atlassian Confluence Space API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Space",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Atlassian Create Private Space",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/_private",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new space that is only visible to the creator. This method is<br>the same as the [Create space](#api-space-post) method with permissions<br>set to the current user only. Note, currently you cannot set space<br>labels when creating a space.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Create Space(s)' global permission."
        },
        {
          "info": {
            "name": "Atlassian Get Space",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to be returned."
              }
            ]
          },
          "docs": "Deprecated, use [Confluence's v2 API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).<br><br>Returns a space. This includes information like the name, description,<br>and permissions, but not the content in the space.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'View' permission for the space."
        },
        {
          "info": {
            "name": "Atlassian Update Space",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to update."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the name, description, or homepage of a space.<br><br>-   For security reasons, permissions cannot be updated via the API and<br>must be changed via the user interface instead.<br>-   Currently you cannot set space labels when updating a space.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Admin' permission for the space."
        },
        {
          "info": {
            "name": "Atlassian Delete Space",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to delete."
              }
            ]
          },
          "docs": "Deletes a space. Note, the space will be deleted in a long running task.<br>Therefore, the space may not be deleted yet when this method has<br>returned. Clients should poll the status link that is returned in the<br>response until the task completes.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Admin' permission for the space."
        },
        {
          "info": {
            "name": "Atlassian Get Content for Space",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/content",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to be queried for its content."
              },
              {
                "name": "depth",
                "value": "",
                "type": "query",
                "description": "Filter the results to content at the root level of the space or all content."
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "The starting index of the returned content."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The maximum number of content objects to return per page. Note, this\nmay be restricted by fixed system limits."
              }
            ]
          },
          "docs": "Deprecated, use [Confluence's v2 API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).<br><br>Returns all content in a space. The returned content is grouped by type<br>(pages then blogposts), then ordered by content ID in ascending order.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'View' permission for the space. Note, the returned list will only<br>contain content that the current user has permission to view."
        },
        {
          "info": {
            "name": "Atlassian Get Content by Type for Space",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/content/:type",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to be queried for its content."
              },
              {
                "name": "type",
                "value": "",
                "type": "path",
                "description": "The type of content to return. `page`, `blogpost`, `<some_customContentType>`."
              },
              {
                "name": "depth",
                "value": "",
                "type": "query",
                "description": "Filter the results to content at the root level of the space or all\ncontent."
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "The starting index of the returned content."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The maximum number of content objects to return per page. Note, this\nmay be restricted by fixed system limits."
              }
            ]
          },
          "docs": "Deprecated, use [Confluence's v2 API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).<br><br>Returns all content of a given type, in a space. The returned content is<br>ordered by content ID in ascending order.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'View' permission for the space. Note, the returned list will only<br>contain content that the current user has permission to view."
        }
      ]
    },
    {
      "info": {
        "name": "Space Permissions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Atlassian Add New Permission to Space",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/permission",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to be queried for its content."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds new permission to space.<br><br>If the permission to be added is a group permission, the group can be identified<br>by its group name or group id.<br><br>Note: Apps cannot access this REST resource - including when utilizing user impersonation.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Admin' permission for the space."
        },
        {
          "info": {
            "name": "Atlassian Add New Custom Content Permission to Space",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/permission/custom-content",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to be queried for its content."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds new custom content permission to space.<br><br>If the permission to be added is a group permission, the group can be identified<br>by its group name or group id.<br><br>Note: Only apps can access this REST resource and only make changes to the respective app permissions.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Admin' permission for the space."
        },
        {
          "info": {
            "name": "Atlassian Remove a Space Permission",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/permission/:id",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to be queried for its content."
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "Id of the permission to be deleted."
              }
            ]
          },
          "docs": "Removes a space permission. Note that removing Read Space permission for a user or group will remove all<br>the space permissions for that user or group.<br><br>Note: Apps cannot access this REST resource - including when utilizing user impersonation.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Admin' permission for the space."
        }
      ]
    },
    {
      "info": {
        "name": "Space Properties",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Atlassian Get Space Properties",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/property",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to be queried for its properties."
              },
              {
                "name": "expand",
                "value": "",
                "type": "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."
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "The starting index of the returned objects."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The maximum number of properties to return per page. Note, this may be\nrestricted by fixed system limits."
              }
            ]
          },
          "docs": "Deprecated, use [Confluence's v2 API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).<br><br>Returns all properties for the given space. Space properties are a key-value storage associated with a space.<br><br>**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘View’ permission for the space."
        },
        {
          "info": {
            "name": "Atlassian Create Space Property",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/property",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space that the property will be created in."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Deprecated, use [Confluence's v2 API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).<br><br>Creates a new space property.<br><br>**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**:<br>‘Admin’ permission for the space."
        },
        {
          "info": {
            "name": "Atlassian Get Space Property",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/property/:key",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space that the property is in."
              },
              {
                "name": "key",
                "value": "",
                "type": "path",
                "description": "The key of the space property."
              },
              {
                "name": "expand",
                "value": "",
                "type": "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."
              }
            ]
          },
          "docs": "Deprecated, use [Confluence's v2 API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).<br><br>Returns a space property.<br><br>**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘View’ permission for the space."
        },
        {
          "info": {
            "name": "Atlassian Create Space Property for Key",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/property/:key",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space that the property will be created in."
              },
              {
                "name": "key",
                "value": "",
                "type": "path",
                "description": "The key of the property to be created."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Deprecated, use [Confluence's v2 API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).<br><br>Creates a new space property. This is the same as `POST<br>/wiki/rest/api/space/{spaceKey}/property` but the key for the property is passed as a<br>path parameter, rather than in the request body.<br><br>**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**:<br>‘Admin’ permission for the space."
        },
        {
          "info": {
            "name": "Atlassian Update Space Property",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/property/:key",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space that the property is in."
              },
              {
                "name": "key",
                "value": "",
                "type": "path",
                "description": "The key of the property to be updated."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Deprecated, use [Confluence's v2 API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).<br><br>Updates a space property. Note, you cannot update the key of a space<br>property, only the value.<br><br>**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**:<br>‘Admin’ permission for the space."
        },
        {
          "info": {
            "name": "Atlassian Delete Space Property",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/property/:key",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space that the property is in."
              },
              {
                "name": "key",
                "value": "",
                "type": "path",
                "description": "The key of the property to be deleted."
              }
            ]
          },
          "docs": "Deprecated, use [Confluence's v2 API](https://developer.atlassian.com/cloud/confluence/rest/v2/intro/).<br><br>Deletes a space property.<br><br>**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**:<br>‘Admin’ permission for the space."
        }
      ]
    },
    {
      "info": {
        "name": "Space Settings",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Atlassian Get Space Settings",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/settings",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to be queried for its settings."
              }
            ]
          },
          "docs": "Returns the settings of a space. Currently only the<br>`routeOverrideEnabled` setting can be returned.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'View' permission for the space."
        },
        {
          "info": {
            "name": "Atlassian Update Space Settings",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/settings",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space whose settings will be updated."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the settings for a space. Currently only the<br>`routeOverrideEnabled` setting can be updated.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Admin' permission for the space."
        }
      ]
    },
    {
      "info": {
        "name": "Content States",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Atlassian Get Space Suggested Content States",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/state",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to be queried for its content state settings."
              }
            ]
          },
          "docs": "Get content states that are suggested in the space.<br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>Space view permission"
        },
        {
          "info": {
            "name": "Atlassian Get Content State Settings for Space",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/state/settings",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to be queried for its content state settings."
              }
            ]
          },
          "docs": "Get object describing whether content states are allowed at all, if custom content states or space content states<br>are restricted, and a list of space content states allowed for the space if they are not restricted.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>Space admin permission"
        },
        {
          "info": {
            "name": "Atlassian Get Content in Space With Given Content State",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/state/content",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to be queried for its content state settings."
              },
              {
                "name": "state-id",
                "value": "",
                "type": "query",
                "description": "The id of the content state to filter content by"
              },
              {
                "name": "expand",
                "value": "",
                "type": "query",
                "description": "A multi-value parameter indicating which properties of the content to expand.\nOptions include: space, version, history, children, etc.\n\nEx: space,version"
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "Maximum number of results to return"
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "Number of result to start returning. (0 indexed)"
              }
            ]
          },
          "docs": "Finds paginated content with <br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>Space View Permission"
        }
      ]
    },
    {
      "info": {
        "name": "Themes",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Atlassian Get Space Theme",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/theme",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to be queried for its theme."
              }
            ]
          },
          "docs": "Returns the theme selected for a space, if one is set. If no space<br>theme is set, this means that the space is inheriting the global look<br>and feel settings.<br><br>**[Permissions required](https://confluence.atlassian.com/x/_AozKw)**: ‘View’ permission for the space."
        },
        {
          "info": {
            "name": "Atlassian Set Space Theme",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/theme",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to set the theme for."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Sets the theme for a space. Note, if you want to reset the space theme to<br>the default Confluence theme, use the 'Reset space theme' method instead<br>of this method.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Admin' permission for the space."
        },
        {
          "info": {
            "name": "Atlassian Reset Space Theme",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/theme",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to reset the theme for."
              }
            ]
          },
          "docs": "Resets the space theme. This means that the space will inherit the<br>global look and feel settings<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Admin' permission for the space."
        }
      ]
    },
    {
      "info": {
        "name": "Content Watches",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Atlassian Get Space Watchers",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/watch",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to get watchers."
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "The start point of the collection to return."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The limit of the number of items to return, this may be restricted by fixed system limits."
              }
            ]
          },
          "docs": "Returns a list of watchers of a space"
        }
      ]
    },
    {
      "info": {
        "name": "Experimental",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Atlassian Get Space Labels",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/label",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to get labels for."
              },
              {
                "name": "prefix",
                "value": "",
                "type": "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 labels that are on content within the provided space.\n- `my` prefix can be explicitly added by a user when adding a label\nvia the UI, e.g. 'my:example-label'.\n- `team` prefix is used for labels applied to the space."
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "The starting index of the returned labels."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The maximum number of labels to return per page. Note,\nthis may be restricted by fixed system limits."
              }
            ]
          },
          "docs": "Returns a list of labels associated with a space. Can provide a prefix as well as other filters to<br>select different types of labels."
        },
        {
          "info": {
            "name": "Atlassian Add Labels to a Space",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/label",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to add labels to."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Adds labels to a piece of content. Does not modify the existing labels.<br><br>Notes:<br><br>- Labels can also be added when creating content ([Create content](#api-content-post)).<br>- Labels can be updated when updating content ([Update content](#api-content-id-put)).<br>This will delete the existing labels and replace them with the labels in<br>the request.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>Permission to update the content."
        },
        {
          "info": {
            "name": "Atlassian Remove Label From a Space",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "//your-domain.atlassian.net/wiki/rest/api/space/:spaceKey/label",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to remove a labels from."
              },
              {
                "name": "name",
                "value": "",
                "type": "query",
                "description": "The name of the label to remove"
              },
              {
                "name": "prefix",
                "value": "",
                "type": "query",
                "description": "The prefix of the label to remove. If not provided defaults to global."
              }
            ]
          },
          "docs": "Needs a more full description created."
        }
      ]
    }
  ],
  "bundled": true
}