asyncConvertContentBodyResponse method
Returns the asynchronous content body for the corresponding id if the task is complete or returns the status of the task.
After the task is completed, the result can be obtained for 5 minutes, or until an identical conversion request is made again, with allowCache query param set to false.
Permissions required: If request specifies 'contentIdContext', 'View' permission for the space, and permission to view the content.
Implementation
Future<AsyncContentBody> asyncConvertContentBodyResponse(String id) async {
return AsyncContentBody.fromJson(await _client.send(
'get',
'wiki/rest/api/contentbody/convert/async/{id}',
pathParameters: {
'id': id,
},
));
}