exportAuditRecords method

Future<String> exportAuditRecords({
  1. String? startDate,
  2. String? endDate,
  3. String? searchString,
  4. String? format,
})

Exports audit records as a CSV file or ZIP file.

Permissions required: 'Confluence Administrator' global permission.

Implementation

Future<String> exportAuditRecords(
    {String? startDate,
    String? endDate,
    String? searchString,
    String? format}) async {
  return await _client.send(
    'get',
    'wiki/rest/api/audit/export',
    queryParameters: {
      if (startDate != null) 'startDate': startDate,
      if (endDate != null) 'endDate': endDate,
      if (searchString != null) 'searchString': searchString,
      if (format != null) 'format': format,
    },
  ) as String;
}