getCustomContentVersionDetails method

Future<DetailedVersion> getCustomContentVersionDetails({
  1. required int customContentId,
  2. required int versionNumber,
})

Retrieves version details for the specified custom content and version number.

Permissions required: Permission to view the page.

Implementation

Future<DetailedVersion> getCustomContentVersionDetails(
    {required int customContentId, required int versionNumber}) async {
  return DetailedVersion.fromJson(await _client.send(
    'get',
    'custom-content/{custom-content-id}/versions/{version-number}',
    pathParameters: {
      'custom-content-id': '$customContentId',
      'version-number': '$versionNumber',
    },
  ));
}