isWatchingLabel method
Returns whether a user is watching a label. 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).
Implementation
Future<UserWatch> isWatchingLabel(
{required String labelName,
String? key,
String? username,
String? accountId}) async {
return UserWatch.fromJson(await _client.send(
'get',
'wiki/rest/api/user/watch/label/{labelName}',
pathParameters: {
'labelName': labelName,
},
queryParameters: {
if (key != null) 'key': key,
if (username != null) 'username': username,
if (accountId != null) 'accountId': accountId,
},
));
}