getRetentionPeriod method

Future<RetentionPeriod> getRetentionPeriod()

Returns the retention period for records in the audit log. The retention period is how long an audit record is kept for, from creation date until it is deleted.

Permissions required: 'Confluence Administrator' global permission.

Implementation

Future<RetentionPeriod> getRetentionPeriod() async {
  return RetentionPeriod.fromJson(await _client.send(
    'get',
    'wiki/rest/api/audit/retention',
  ));
}