getWatchesForPage method

Future<WatchArray> getWatchesForPage({
  1. required String id,
  2. int? start,
  3. int? limit,
})

Returns the watches for a page. A user that watches a page will receive receive notifications when the page is updated.

If you want to manage watches for a page, use the following user methods:

Get content watch status for user

Permissions required: Permission to access the Confluence site ('Can use' global permission).

Implementation

Future<WatchArray> getWatchesForPage(
    {required String id, int? start, int? limit}) async {
  return WatchArray.fromJson(await _client.send(
    'get',
    'wiki/rest/api/content/{id}/notification/child-created',
    pathParameters: {
      'id': id,
    },
    queryParameters: {
      if (start != null) 'start': '$start',
      if (limit != null) 'limit': '$limit',
    },
  ));
}