Skip to content

Function: getWatchesForPage()

ts
function getWatchesForPage(client, parameters): Promise<{
[key: string]: unknown;
  _links: {
   [key: string]: unknown;
     base?: string;
     byOperation?: string;
     collection?: string;
     context?: string;
     download?: string;
     editui?: string;
     edituiv2?: string;
     next?: string;
     prev?: string;
     self?: string;
     tinyui?: string;
     webui?: string;
  };
  limit: number;
  results: object[];
  size: number;
  start: number;
}>;

Defined in: src/v1/api/contentWatches.ts:31

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:

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

Parameters

ParameterTypeDescription
clientClient-
parameters{ id: string; limit?: number; start?: number; }-
parameters.idstringThe ID of the content to be queried for its watches.
parameters.limit?numberThe maximum number of watches to return per page. Note, this may be restricted by fixed system limits.
parameters.start?numberThe starting index of the returned watches.

Returns

Promise&lt;{ [key: string]: unknown; _links: { [key: string]: unknown; base?: string; byOperation?: string; collection?: string; context?: string; download?: string; editui?: string; edituiv2?: string; next?: string; prev?: string; self?: string; tinyui?: string; webui?: string; }; limit: number; results: object[]; size: number; start: number; }>