getContentState method
Gets the current content state of the draft or current version of content. To specify the draft version, set the parameter status to draft, otherwise archived or current will get the relevant published state. Permissions required: Permission to view the content.
Implementation
Future<ContentStateResponse> getContentState(
{required String id, String? status}) async {
return ContentStateResponse.fromJson(await _client.send(
'get',
'wiki/rest/api/content/{id}/state',
pathParameters: {
'id': id,
},
queryParameters: {
if (status != null) 'status': status,
},
));
}