Get an audit log

Get an audit log

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

This endpoint allows you to retrieve a specific audit log.

Path Parameters

NameTypeDescription

id

string

The ID of the audit log.

Headers

NameTypeDescription

Authorization

string

The live or sandbox API key.

{
    "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"
}

Example request

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

Last updated