{
  "opencollection": "1.0.0",
  "info": {
    "name": "Atlassian Confluence User API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Users",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Atlassian Get Anonymous User",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/anonymous",
            "params": [
              {
                "name": "expand",
                "value": "",
                "type": "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."
              }
            ]
          },
          "docs": "Returns information about how anonymous users are represented, like the<br>profile picture and display name.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>Permission to access the Confluence site ('Can use' global permission)."
        },
        {
          "info": {
            "name": "Atlassian Get Current User",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/current",
            "params": [
              {
                "name": "expand",
                "value": "",
                "type": "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  - `personalSpace` returns the user's personal space, if it exists.\n  - `isExternalCollaborator` returns whether the user is an external collaborator user."
              }
            ]
          },
          "docs": "Returns the currently logged-in user. This includes information about<br>the user, like the display name, userKey, account ID, profile picture,<br>and more.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>Permission to access the Confluence site ('Can use' global permission)."
        },
        {
          "info": {
            "name": "Atlassian Get Group Memberships for User",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/memberof",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "query",
                "description": "The account ID of the user. The accountId uniquely identifies the user across all Atlassian products.\nFor example, `384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192`."
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "The starting index of the returned groups."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The maximum number of groups to return per page.\nNote, this may be restricted by fixed system limits."
              }
            ]
          },
          "docs": "Returns the groups that a user is a member of.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>Permission to access the Confluence site ('Can use' global permission)."
        },
        {
          "info": {
            "name": "Atlassian Get Multiple Users Using Ids",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/bulk",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "query",
                "description": "A list of accountId's of users to be returned."
              },
              {
                "name": "expand",
                "value": "",
                "type": "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  - `personalSpace` returns the user's personal space, if it exists.\n  - `isExternalCollaborator` returns whether the user is an external collaborator user."
              },
              {
                "name": "limit",
                "value": "",
                "type": "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."
              }
            ]
          },
          "docs": "Returns user details for the ids provided in request.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>Permission to access the Confluence site ('Can use' global permission)."
        },
        {
          "info": {
            "name": "Atlassian Get User Email Address",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/email",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "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."
              }
            ]
          },
          "docs": "Returns a user's email address. This API is only available to apps approved by<br>Atlassian, according to these [guidelines](https://community.developer.atlassian.com/t/guidelines-for-requesting-access-to-email-address/27603).<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>Permission to access the Confluence site ('Can use' global permission)."
        },
        {
          "info": {
            "name": "Atlassian Get User Email Addresses in Batch",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/email/bulk",
            "params": [
              {
                "name": "accountId",
                "value": "",
                "type": "query",
                "description": "The account IDs of the users."
              }
            ]
          },
          "docs": "Returns user email addresses for a set of accountIds. This API is only available to apps approved by<br>Atlassian, according to these [guidelines](https://community.developer.atlassian.com/t/guidelines-for-requesting-access-to-email-address/27603).<br><br>Any accounts which are not available will not be included in the result.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>Permission to access the Confluence site ('Can use' global permission)."
        }
      ]
    },
    {
      "info": {
        "name": "Content Watches",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Atlassian Get Content Watch Status",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/watch/content/:contentId",
            "params": [
              {
                "name": "contentId",
                "value": "",
                "type": "path",
                "description": "The ID of the content to be queried for whether the specified user is\nwatching it."
              }
            ]
          },
          "docs": "Returns whether a user is watching a piece of content. Choose the user by<br>doing one of the following:<br><br>- Specify a user via a query parameter: Use the `accountId` to identify the user.<br>- Do not specify a user: The currently logged-in user will be used.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Confluence Administrator' global permission if specifying a user, otherwise<br>permission to access the Confluence site ('Can use' global permission)."
        },
        {
          "info": {
            "name": "Atlassian Add Content Watcher",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/watch/content/:contentId",
            "params": [
              {
                "name": "contentId",
                "value": "",
                "type": "path",
                "description": "The ID of the content to add the watcher to."
              }
            ]
          },
          "docs": "Adds a user as a watcher to a piece of content. Choose the user by doing<br>one of the following:<br><br>- Specify a user via a query parameter: Use the `accountId` to identify the user.<br>- Do not specify a user: The currently logged-in user will be used.<br><br>Note, you must add the `X-Atlassian-Token: no-check` header when making a<br>request, as this operation has XSRF protection.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Confluence Administrator' gl"
        },
        {
          "info": {
            "name": "Atlassian Remove Content Watcher",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/watch/content/:contentId",
            "headers": [
              {
                "name": "X-Atlassian-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "contentId",
                "value": "",
                "type": "path",
                "description": "The ID of the content to remove the watcher from."
              }
            ]
          },
          "docs": "Removes a user as a watcher from a piece of content. Choose the user by<br>doing one of the following:<br><br>- Specify a user via a query parameter: Use the `accountId` to identify the user.<br>- Do not specify a user: The currently logged-in user will be used.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Confluence Administrator' global permission if specifying a user, otherwise<br>permission to access the Confluence site ('Can use' global permission)."
        },
        {
          "info": {
            "name": "Atlassian Get Label Watch Status",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/watch/label/:labelName",
            "params": [
              {
                "name": "labelName",
                "value": "",
                "type": "path",
                "description": "The name of the label to be queried for whether the specified user is\nwatching it."
              }
            ]
          },
          "docs": "Returns whether a user is watching a label. Choose the user by doing one<br>of the following:<br><br>- Specify a user via a query parameter: Use the `accountId` to identify the user.<br>- Do not specify a user: The currently logged-in user will be used.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Confluence Administrator' global permission if specifying a user, otherwise<br>permission to access the Confluence site ('Can use' global permission)."
        },
        {
          "info": {
            "name": "Atlassian Add Label Watcher",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/watch/label/:labelName",
            "headers": [
              {
                "name": "X-Atlassian-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "labelName",
                "value": "",
                "type": "path",
                "description": "The name of the label to add the watcher to."
              }
            ]
          },
          "docs": "Adds a user as a watcher to a label. Choose the user by doing one of the<br>following:<br><br>- Specify a user via a query parameter: Use the `accountId` to identify the user.<br>- Do not specify a user: The currently logged-in user will be used.<br><br>Note, you must add the `X-Atlassian-Token: no-check` header when making a<br>request, as this operation has XSRF protection.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Confluence Administrator' global permis"
        },
        {
          "info": {
            "name": "Atlassian Remove Label Watcher",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/watch/label/:labelName",
            "params": [
              {
                "name": "labelName",
                "value": "",
                "type": "path",
                "description": "The name of the label to remove the watcher from."
              }
            ]
          },
          "docs": "Removes a user as a watcher from a label. Choose the user by doing one of<br>the following:<br><br>- Specify a user via a query parameter: Use the `accountId` to identify the user.<br>- Do not specify a user: The currently logged-in user will be used.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Confluence Administrator' global permission if specifying a user, otherwise<br>permission to access the Confluence site ('Can use' global permission)."
        },
        {
          "info": {
            "name": "Atlassian Get Space Watch Status",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/watch/space/:spaceKey",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to be queried for whether the specified user is\nwatching it."
              }
            ]
          },
          "docs": "Returns whether a user is watching a space. Choose the user by<br>doing one of the following:<br><br>- Specify a user via a query parameter: Use the `accountId` to identify the user.<br>- Do not specify a user: The currently logged-in user will be used.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Confluence Administrator' global permission if specifying a user, otherwise<br>permission to access the Confluence site ('Can use' global permission)."
        },
        {
          "info": {
            "name": "Atlassian Add Space Watcher",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/watch/space/:spaceKey",
            "headers": [
              {
                "name": "X-Atlassian-Token",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to add the watcher to."
              }
            ]
          },
          "docs": "Adds a user as a watcher to a space. Choose the user by doing one of the<br>following:<br><br>- Specify a user via a query parameter: Use the `accountId` to identify the user.<br>- Do not specify a user: The currently logged-in user will be used.<br><br>Note, you must add the `X-Atlassian-Token: no-check` header when making a<br>request, as this operation has XSRF protection.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Confluence Administrator' global permis"
        },
        {
          "info": {
            "name": "Atlassian Remove Space Watch",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/watch/space/:spaceKey",
            "params": [
              {
                "name": "spaceKey",
                "value": "",
                "type": "path",
                "description": "The key of the space to remove the watcher from."
              }
            ]
          },
          "docs": "Removes a user as a watcher from a space. Choose the user by doing one of<br>the following:<br><br>- Specify a user via a query parameter: Use the `accountId` to identify the user.<br>- Do not specify a user: The currently logged-in user will be used.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>'Confluence Administrator' global permission if specifying a user, otherwise<br>permission to access the Confluence site ('Can use' global permission)."
        }
      ]
    },
    {
      "info": {
        "name": "User Properties",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Atlassian Get User Properties",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/:userId/property",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path",
                "description": "The account ID of the user to be queried for its properties."
              },
              {
                "name": "start",
                "value": "",
                "type": "query",
                "description": "The starting index of the returned properties."
              },
              {
                "name": "limit",
                "value": "",
                "type": "query",
                "description": "The maximum number of properties to return per page.\nNote, this may be restricted by fixed system limits."
              }
            ]
          },
          "docs": "Returns the properties for a user as list of property keys. For more information<br>about user properties, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).<br>`Note`, these properties stored against a user are on a Confluence site level and not space/content level.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>Permission to access the Confluence site ('Can use' global permission)."
        },
        {
          "info": {
            "name": "Atlassian Get User Property",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/:userId/property/:key",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path",
                "description": "The account ID of the user to be queried for its properties."
              },
              {
                "name": "key",
                "value": "",
                "type": "path",
                "description": "The key of the user property."
              }
            ]
          },
          "docs": "Returns the property corresponding to `key` for a user. For more information<br>about user properties, see [Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).<br>`Note`, these properties stored against a user are on a Confluence site level and not space/content level.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>Permission to access the Confluence site ('Can use' global permission)."
        },
        {
          "info": {
            "name": "Atlassian Create User Property by Key",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/:userId/property/:key",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path",
                "description": "The account ID of the user. The accountId uniquely identifies the user across all Atlassian\nproducts. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192"
              },
              {
                "name": "key",
                "value": "",
                "type": "path",
                "description": "The key of the user property."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a property for a user. For more information  about user properties, see [Confluence entity properties]<br>(https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).<br>`Note`, these properties stored against a user are on a Confluence site level and not space/content level.<br><br>`Note:` the number of properties which could be created per app in a tenant for each user might be<br>restricted by fixed system limits.<br>**[Permissions](https://confluence.atlassian.co"
        },
        {
          "info": {
            "name": "Atlassian Update User Property",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/:userId/property/:key",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path",
                "description": "The account ID of the user. The accountId uniquely identifies the user across all Atlassian\nproducts. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192"
              },
              {
                "name": "key",
                "value": "",
                "type": "path",
                "description": "The key of the user property."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates a property for the given user. Note, you cannot update the key of a user property, only the value.<br>For more information about user properties, see<br>[Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).<br>`Note`, these properties stored against a user are on a Confluence site level and not space/content level.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>Permission to access the Confluence "
        },
        {
          "info": {
            "name": "Atlassian Delete User Property",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "//your-domain.atlassian.net/wiki/rest/api/user/:userId/property/:key",
            "params": [
              {
                "name": "userId",
                "value": "",
                "type": "path",
                "description": "The account ID of the user. The accountId uniquely identifies the user across all Atlassian\nproducts. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192"
              },
              {
                "name": "key",
                "value": "",
                "type": "path",
                "description": "The key of the user property."
              }
            ]
          },
          "docs": "Deletes a property for the given user.<br>For more information about user properties, see<br>[Confluence entity properties](https://developer.atlassian.com/cloud/confluence/confluence-entity-properties/).<br>`Note`, these properties stored against a user are on a Confluence site level and not space/content level.<br><br>**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:<br>Permission to access the Confluence site ('Can use' global permission)."
        }
      ]
    }
  ],
  "bundled": true
}