archivePages method

Future<LongTask> archivePages({
  1. required Map<String, dynamic> body,
})

Archives a list of pages. The pages to be archived are specified as a list of content IDs. This API accepts the archival request and returns a task ID. The archival process happens asynchronously. Use the /longtask/

Each content ID needs to resolve to page objects that are not already in an archived state. The content IDs need not belong to the same space.

Permissions required: 'Archive' permission for each of the pages in the corresponding space it belongs to.

Implementation

Future<LongTask> archivePages({required Map<String, dynamic> body}) async {
  return LongTask.fromJson(await _client.send(
    'post',
    'wiki/rest/api/content/archive',
    body: body,
  ));
}