removeContentState method

Future<ContentStateResponse> removeContentState({
  1. required String id,
  2. String? status,
})

Removes the content state of the content specified and creates a new version (publishes the content without changing the body) of the content with the new status.

Permissions required: Permission to edit the content.

Implementation

Future<ContentStateResponse> removeContentState(
    {required String id, String? status}) async {
  return ContentStateResponse.fromJson(await _client.send(
    'delete',
    'wiki/rest/api/content/{id}/state',
    pathParameters: {
      'id': id,
    },
    queryParameters: {
      if (status != null) 'status': status,
    },
  ));
}