admin/logs/traces/{day}

Wordbee logs changes, deletions and insertions of business objects down to field level. This covers changes to orders, projects, jobs, companies, prices, etc.

This method returns daily logs with time stamps, triggering company and user and more information.

These business objects are tracked are listed here.


URL

(GET) /api/admin/logs/traces/{day}

PARAMETERS

The URL parameters are:

day

Day offset:

  • 0: Today (UTC timezone). Default.

  • -1: Today minus 1 day

  • -2: Today minus 2 days

  • ...

  • -31: Today minus 31 days

Note: A day starts at 0 am UTC and ends at midnight UTC.

Traces are kept for 45 days. Download them regularly.

int, Mandatory


RESULTS

The method returns a JSON array. Each element is one trace.

Click for the trace properties:

Trace details


EXAMPLE

A few lines of a log file:

[ 
{
	"v": 1,
	"a": "i",
	"oc": "ps",
	"key": {
		"uid": 138
	},
	"dt": "2017-07-10T16:18:53.6961066Z",
	"uid": 1,
	"cid": 1,
	"ts": "0ec12110-50c9-4c60-927e-3a250eea5ccf",
	"tsc": "new account",
	"flds": [{
			"f": "RssNotifications",
			"v": "Personal"
		}, {
			"f": "EmailNotifications",
			"v": "Personal"
		}, {
			"f": "NotifyOrders",
			"v": "Personal"
		}, {
			"f": "NotifyJobs",
			"v": "Personal"
		}, {
			"f": "PersonId",
			"v": "0"
		}, {
			"f": "AddressId",
			"v": "1"
		}, {
			"f": "FirstName",
			"v": "creation"
		}, {
			"f": "LastName",
			"v": "test"
		}, {
			"f": "Email",
			"v": "cpons@wordbee.com"
		}, {
			"f": "PersonCode",
			"v": "ct"
		}, {
			"f": "RssNotifications_",
			"v": "1"
		}, {
			"f": "EmailNotifications_",
			"v": "1"
		}, {
			"f": "IsActive",
			"v": "False"
		}, {
			"f": "LoginAttempts",
			"v": "0"
		}, {
			"f": "Password",
			"v": "*****"
		}, {
			"f": "PwdDate",
			"v": "10/07/2017 16:18:51"
		}, {
			"f": "NotifyOrders_",
			"v": "0"
		}, {
			"f": "NotifyJobs_",
			"v": "0"
		}
	]
}, {
	"v": 1,
	"a": "c",
	"oc": "ps",
	"key": {
		"uid": 138
	},
	"dt": "2017-07-10T16:19:36.6244773Z",
	"ts": "79a5aa40-b302-44ff-baaf-71d88b4c67fd",
	"flds": [{
			"f": "PersonCode",
			"v": "cao",
			"p": "ct"
		}
	]
}, 
{
	"v": 1,
	"a": "d",
	"oc": "ps",
	"key": {
		"uid": 138
	},
	"dt": "2017-07-10T16:19:46.7389286Z",
	"ts": "313b163f-211c-41d4-bd0e-35496b560fe8",
	"tsc": "Delete",
	"flds": []
}
]