Search Audit Records
POST https://{{axpAPIDomain}}/api/admin/match/v1/accounts/:accountId/audit-records:search?pageNumber=1&pageSize=5&orderBy=date desc
This API requires the Account Administrator role.
Searches the audit records based on the filter.
The value of searchKeyword can be used to perform a text search across all fields.
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" 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"=>"QUEUE", "ipAddress"=>"165.225.72.60", "searchKeyword"=>"Support"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
appkey | string | ||
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"pagination":{"pageNumber":1,"pageSize":5,"total":1},"auditRecords":[{"date":"2021-11-14T09:24:05.234Z","event":"CREATED","author":"admin","ipAddress":"165.225.72.60","type":"QUEUE","auditData":{"queueId":"d62d5178-9920-415a-a5d9-066716384750","name":"NA Support","description":"Route enagements to support agents in the NA Region","timetableId":"7893b4a3-c952-43f5-87c7-8cefa1f49685","defaultAccountQueue":false,"afterContactWork":true}}],"links":{"next":"https://example.avayacloud.com/api/admin/match/api/admin/match/v1/accounts/{{accountId}}/audit-records:search?pageNumber=2\u0026pageSize=5","prev":"https://example.avayacloud.com/api/admin/match/api/admin/match/v1/accounts/{{accountId}}/audit-records:search?pageNumber=1\u0026pageSize=5"}}