Get an audit log

URL

GET https://api.complycube.com/v1/auditLogs/:id

This endpoint allows you to retrieve a specific audit log.

Headers

NameTypeDescription

Authorization*

string

The API live or test key.

Path parameters

NameTypeDescription

id*

string

The ID of the audit log.

Example request

curl -X GET https://api.complycube.com/v1/auditLogs/{:auditLogId} \
     -H 'Authorization: <YOUR_API_KEY>' 

Example responses

{
    "id": "5f2acdcebbddb422f9b60e7b",
    "memberId": "VNARgK33nMASdJKdi",
    "resourceType": "client",
    "resourceId": "5f2aca5fbbddb422f9b60e79",
    "clientId": "5f2aca5fbbddb422f9b60e79",
    "trigger": "updateClient",
    "action": "update",
    "diff": [
        {
            "action": "update",
            "path": [
                "personDetails",
                "firstName"
            ],
            "old": "Joe",
            "new": "John"
        },
        {
            "action": "new",
            "path": [
                "personDetails",
                "dob"
            ],
            "new": "1969-09-23"
        },
        {
            "action": "new",
            "path": [
                "personDetails",
                "nationality"
            ],
            "new": "US"
        },
        {
            "action": "update",
            "path": [
                "updatedAt"
            ],
            "old": "2020-01-01T15:03:59.913Z",
            "new": "2020-01-01T15:18:38.273Z"
        },
        {
            "action": "new",
            "path": [
                "lastActionBy"
            ],
            "new": "VNARgK33nMASdJKdi"
        }
    ],
    "createdAt": "2020-01-01T15:18:38.347Z"
}

Last updated