createAuditRecord method

Future<AuditRecord> createAuditRecord({
  1. required AuditRecordCreate body,
})

Creates a record in the audit log.

Permissions required: 'Confluence Administrator' global permission.

Implementation

Future<AuditRecord> createAuditRecord(
    {required AuditRecordCreate body}) async {
  return AuditRecord.fromJson(await _client.send(
    'post',
    'wiki/rest/api/audit',
    body: body.toJson(),
  ));
}