Get space watch status
GET {{baseUrl}}/api/user/watch/space/:spaceKey?key=<string>&username=<string>&accountId=<string>
Returns whether a user is watching a space. Choose the user by doing one of the following:
- Specify a user via a query parameter: Use the
accountId
to identify the user. - Do not specify a user: The currently logged-in user will be used.
Permissions required: 'Confluence Administrator' global permission if specifying a user, otherwise permission to access the Confluence site ('Can use' global permission).
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
key | string | This parameter is no longer available and will be removed from the documentation soon. | |
Use accountId instead. | |||
See the deprecation notice for details. | |||
username | string | This parameter is no longer available and will be removed from the documentation soon. | |
Use accountId instead. | |||
See the deprecation notice for details. | |||
accountId | string | (Required) The accountId of the user to be queried for whether they are watching the space. The accountId uniquely identifies | |
the user across all Atlassian products. For example, 384093:32b4d9w0-f6a5-3535-11a3-9c8c88d10192 . |
RESPONSES
status: OK
{"watching":true}