bulkSetContentStates method

Future<AsyncId> bulkSetContentStates({
  1. required String status,
  2. required BulkContentStateSetInput body,
})

Creates a long running task that sets content state of draft or published versions of pages specified.

Permissions required Content Edit Permission for a content to have its state set via this endpoint.

Implementation

Future<AsyncId> bulkSetContentStates(
    {required String status, required BulkContentStateSetInput body}) async {
  return AsyncId.fromJson(await _client.send(
    'put',
    'wiki/rest/api/content-states',
    queryParameters: {
      'status': status,
    },
    body: body.toJson(),
  ));
}