Search Audit Records
POST https://{{axpAPIDomain}}/api/admin/user/v1/accounts/:accountId/audit-records:search?pageNumber=2&pageSize=5&orderBy=date desc
This API requires the Account Administrator role.
Searches the audit records based on the supplied filter.
The value of searchKeyword can be used to perform a text search across all fields within an audit record (excluding date).
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
pageNumber | number | The page number of the records to retrieve. Default value is 1. | |
pageSize | number | The max number of records to retrieve per page. Default value is 5, max value is 50. | |
orderBy | string | Field name on which sorting needs to be performed. The possible fields | |
you ordered on are date (date of audit record) and author. | |||
Field Names are case-senstive (should be written as it is in description). The default sorting order is ascending. To specify descending order, a suffix " desc" should be added. For example, "date asc" for ascending or "date desc" for descending". | |||
Request Body
{"startDate"=>"2021-11-13T20:25:39.534Z", "endDate"=>"2021-11-15T16:07:12.723Z", "event"=>"CREATED", "author"=>"jsmith@example.com", "type"=>"PROFILE", "ipAddress"=>"165.225.72.60", "searchKeyword"=>"Chris Dunbar"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
appkey | string | ||
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"pagination":{"pageNumber":2,"pageSize":5,"total":30},"auditRecords":[{"date":"2021-11-14T09:24:05.234Z","event":"CREATED","author":"jsmith@example.com","ipAddress":"165.225.72.60","type":"PROFILE","auditData":{"profileId":"W6D1JQ","profileName":"Advanced","description":"A profile with all the features","uxProfileId":"6f482dcd-54a9-445f-ba6d-8ca5ebd5261a","roles":["Agent"],"memberOfGroups":["04703a3a-3dfb-4606-ae79-fd0fe0be3e64"]}}],"links":{"next":"/api/admin/user/v1/accounts/ASDJGE/audit-records:search?pageNumber=1\u0026pageSize=5","prev":"/api/admin/user/v1/accounts/ASDJGE/audit-records:search?pageNumber=3\u0026pageSize=5"}}