setRetentionPeriod method

Future<RetentionPeriod> setRetentionPeriod({
  1. required RetentionPeriod body,
})

Sets the retention period for records in the audit log. The retention period can be set to a maximum of 1 year.

Permissions required: 'Confluence Administrator' global permission.

Implementation

Future<RetentionPeriod> setRetentionPeriod(
    {required RetentionPeriod body}) async {
  return RetentionPeriod.fromJson(await _client.send(
    'put',
    'wiki/rest/api/audit/retention',
    body: body.toJson(),
  ));
}