Skip to content

Function: getLabelPages()

ts
function getLabelPages(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;
  };
  results?: object[];
}>;

Defined in: src/v2/api/page.ts:22

Returns the pages of specified label. The number of results is limited by the limit parameter and additional results (if available) will be available through the next URL present in the Link response header.

Permissions required: Permission to view the content of the page and its corresponding space.

Parameters

ParameterTypeDescription
clientClient-
parameters{ bodyFormat?: "storage" | "atlas_doc_format"; cursor?: string; id: number; limit?: number; sort?: | "id" | "title" | "created-date" | "-created-date" | "modified-date" | "-modified-date" | "-id" | "-title"; spaceId?: number[]; }-
parameters.bodyFormat?"storage" | "atlas_doc_format"The content format types to be returned in the body field of the response. If available, the representation will be available under a response field of the same name under the body field.
parameters.cursor?stringUsed for pagination, this opaque cursor will be returned in the next URL in the Link response header. Use the relative URL in the Link header to retrieve the next set of results.
parameters.idnumberThe ID of the label for which pages should be returned.
parameters.limit?numberMaximum number of pages per result to return. If more results exist, use the Link header to retrieve a relative URL that will return the next set of results.
parameters.sort?| "id" | "title" | "created-date" | "-created-date" | "modified-date" | "-modified-date" | "-id" | "-title"Used to sort the result by a particular field.
parameters.spaceId?number[]Filter the results based on space ids. Multiple space ids can be specified as a comma-separated list.

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; }; results?: object[]; }>