Represents a read-only log of entity creations and modifications by users or the system. Useful for troubleshooting issues or finding out when an entity was created and what modifications were made to it.
Creation entries (AuditType = 1) do not record the values for the individual fields. To infer the initial values, look at the first update entry for that entity and read the OldValue for each property.
Use AuditTrailEntry_EntityId to search by the integer ID of the audited record.
Not all entities are fully audited. These are the ones currently supported by the AuditTrailEntry_EntityShortName filter:
Charge, ContractSchedule, CoworkerBookingCredit, CoworkerContract, CoworkerExtraService, CoworkerInvoice, CoworkerLedgerEntry, CoworkerPaymentMethod, CoworkerProduct, FinancialAccount, CoworkerTask, CrmOpportunity, Booking, Checkin, Coworker, CoworkerIdentityCheck, Resource, Team, Visitor, Business, BusinessSetting, FloorPlanDesk, User.
The AuditType field uses the eAuditType enum: 1 = Create, 2 = Update, 3 = Delete.
Authentication
This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header.
The authenticated user must be a full unrestricted administrator or have the AuditTrailEntry-Read role.
Path Parameters
The Id of the AuditTrailEntry record to retrieve.
Code Examples
curl -X GET \
"https://spaces.nexudus.com/api/sys/audittrailentries/87654321" \
-H "Authorization: Bearer YOUR_TOKEN"
Response
200
Short name of the audited entity type (e.g. Coworker, Booking, Charge).
Human-readable description of the audit trail entry.
Name of the property that was changed.
Type of audit action: 1 = Create, 2 = Update, 3 = Delete. See eAuditType enum values: 1 = Create, 2 = Update, 3 = Delete.
Previous value of the property before the change.
New value of the property after the change.
User or system account that performed the action.
Integer ID of the audited record.
Unique record identifier.
Date and time the record was created (ISO 8601).
Date and time the record was last updated (ISO 8601).
Email of the user who last updated this record.
Whether the record was recently created.
External system identifier.
{
"BusinessId": 0,
"EntityShortName": "",
"Description": "",
"PropertyName": "",
"AuditType": 0,
"OldValue": null,
"NewValue": null,
"ActionBy": null,
"EntityId": 0,
"Id": 87654321,
"UpdatedOn": "2025-01-15T10:30:00Z",
"CreatedOn": "2025-01-10T08:00:00Z",
"UniqueId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"UpdatedBy": "admin@example.com",
"IsNew": false,
"SystemId": null,
"ToStringText": "AuditTrailEntry Example",
"LocalizationDetails": null,
"CustomFields": null
}