Show examples in:
Javascript HTTP

Content Management API > Audit log event

Audit log event

If the Audit log functionality is enabled in a project, logged events can be queried using SQL-like language and fetched in full detail so that they can be exported or analyzed.

Object payload

id string
Example: "01F8WDQJR03M4VC6NTK49R83QW"
type string

Must be exactly "audit_log_event".

attributes.action_name string

The actual action performed

Example: "items.publish"
attributes.actor object

The actor who performed the action

Example: { type: "user", id: "3845289", name: "mark@acme.com" }
type string

The type of actor (can be account, user, sso_user or access_token)

Example: "user"
id string

The ID of the actor

Example: "3845289"
name string

An human representation of the actor (name/email/username depending on the type of actor)

Example: "mark@acme.com"
attributes.role null, object

The role of the actor at the time the action was performed

Example: { id: "455281", name: "Editor" }
name string

The name of the role

Example: "Editor"
id string

The ID of the role

Example: "455281"
attributes.environment object

The environment inside of which the action was performed

Example: { id: "main", primary: true }
id string

The ID of the environment

Example: "main"
primary boolean

Whether the environment was the primary one at the time the action was performed

attributes.request object

The actual request being performed

Example: { id: "894f9f6c-a693-4f93-a3fb-452454b41313", method: "PUT", path: "/items/37823421/publish", payload: {}, }
path string

The full path of the request

Example: "/items/37823421/publish"
method string

The HTTP method of the request

Example: "PUT"
id string

The X-Request-ID header of the request

Example: "894f9f6c-a693-4f93-a3fb-452454b41313"
payload null, object

The full HTTP body of the request

Example: {}
attributes.response null, object

The actual response being returned by DatoCMS

Example: { status: 200, payload: {} }
status integer

The HTTP status code of the response

Example: "200"
payload object

The full HTTP body of the response

Example: "PUT"
meta.occurred_at date-time

The date of the event

Example: "2016-09-20T18:50:24.914Z"

Available endpoints