Represents a change made to the state of a resource.

id
string
required

Unique string identifier of this event.

type
string
required
Allowed value: "event"
url
string<uri>
required

Absolute URL for the event resource.

topic
required

List of topics Indicates which type of event occurred. Usually concatenates the name of the object type with the kind of change ("created", "updated" or "deleted").

Allowed value: "confirmation"
Examples:

"employee.created"

occurredAt
string<date-time>
required

Timezoned timestamp of the moment when this event occurred.

source
string<uri>
required

URL of the tenant. Ensures unicity of {source} + {id}.

data
object
required

Representation of the resource whose change triggered the event. Please note that this is the representation of the resource just after the change, and it may have changed again since then.

apiVersion
string<date>

API version of the resource representation contained in data. Not to be confused with the API version of the representation of this present event, which is indicated in the Api-Version HTTP header.

businessEstablishment
object | null

Business Establishment of the Resource in the Event, if there is one. Reference to a business-establishment resource.

Examples:
{
"id": "5",
"type": "business-establishment",
"url": "https://example.ilucca.net/lucca-api/business-establishments/5"
}
previousAttributes
object

Only sent on *.updated event topics. Keys are the list of modified attributes. Values are the values of these attributes before the change.

This is only available for some resources. If a value in the dictionary is NULL, then it can either mean that the original value was NULL or that we can't retrieve them for this Resource.