TrackRecordPro API Documentation TrackRecordPro

auditlog endpoint

Summary

API Endpoint Address

https://api.trackrecordpro.co.uk/3.0/auditlog

Minimum Supported API Version3.0
Supported Methods

GET

Access LevelEveryone
DescriptionAll actions on the system are automatically recorded here in this readonly endpoint. You can query these records to view a comprehensive audit trail.

GET auditlog

GET /3.0/auditlog HTTP/1.1

Details

Retrieves audit log entries for the current company

{
    "request": {
        "url": "\/3.0\/auditlog",
        "endpoint": "auditlog",
        "requested_version": "3.0",
        "api_version": 3,
        "request_method": "Get",
        "timestamp": 1507548951,
        "session": null
    },
    "pagination": {
        "total_pages": 24,
        "total_records": 692
    },
    "response": [
        {
            "id": 1,
            "asset_id": 1,
            "company_id": null,
            "user_id": 2,
            "file_id": 1,
            "logdate": "2017-10-09 12:35:20",
            "message": "Updated file on asset TEST",
            "olddata": {},
            "newdata": {},
            "asset": {
                "id": 1,
                "asset_no": "TEST1",
                "serial_no": "TEST1SER",
                "status": "Active",
                "next_check": "2017-10-26",
                "period": 12,
                "company_id": null,
                "location_id": 1,
                "department_id": 1,
                "description": "Test Asset 1",
                "data": null
            },
            "company": {
                "id": 1,
                "name": "TrackRecordPro",
                "created": "2017-10-09 08:42:37",
                "logo": "trp.png",
                "subdomain": "trackrecordpro",
                "styles": {
                    "test": {
                        "foo": "bar",
                        "baz": 1
                    },
                    "test2": 666.7
                },
                "data": null
            },
            "user": {
                "id": 2,
                "username": "test.user",
                "email": "testuser@comech.co.uk",
                "first_name": "Test",
                "last_name": "User",
                "phone": "01332 867700",
                "email_confirmed": 1,
                "password_last_changed": null,
                "permissions": null,
                "reminders": 1,
                "data": null
            },
            "file": {
                "id": 1,
                "upload_uuid": "5ad8ef80-a8da-11e7-bc5c-3417ebeecb23",
                "upload_endpoint": "https:\/\/api.trackrecordpro.co.uk\/3.0\/upload\/5ad8ef80-a8da-11e7-bc5c-3417ebeecb23",
                "filedate": "2017-10-04",
                "description": "Calibration of asset 1",
                "filename": "",
                "asset_id": 1,
                "company_id": null,
                "data": {}
            }
        }
    ]
}

Field Definitions

Expand

Invalid license

Your evaluation license of PocketQuery expired. Please contact an administrator to purchase a new license.