Skip to content
dimmiDocs

Contacts and companies

Update an event name

PATCH/api/v1/event-definitions/{event}

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the attributes:write ability

Path parameters

eventstringrequired

Id of the event definition, starting with edf_, such as edf_01jx2m8k4t. Find it with GET /event-definitions.

Body

application/json
client_writableboolean

Whether the messenger may send this event from the visitor's browser. true opens the event name to the messenger, false closes it. Example: true.

descriptionstring

The description of the event definition, at most 500 characters.

Maximum length: 500

labelstring

The new name people see for the event, 1 to 80 characters. Such as Checkout started.

Maximum length: 80

statusstring

active or archived.

Available options:activearchived

Response 200

OK
dataobjectrequired
Show child attributes
client_writablebooleanrequired

True when the messenger may send this event from the visitor's browser; false when only the team's servers may report it.

created_atstringrequired

When it was created, as an RFC 3339 time, such as 2026-01-31T09:00:00Z.

Format: date-time

descriptionstring | nullrequired

Text explaining what the event means, up to 500 characters. Null when none was written.

idstringrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

labelstringrequired

The event's display name, 1 to 80 characters, such as Exported a report.

last_seen_atstring | nullrequired

When an event of this name last arrived. Null when none has.

Format: date-time

namestringrequired

The event's name as it is sent: 1 to 64 lowercase letters, digits and _ . : -, such as report.exported. Unique in the workspace.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

originstringrequired

How the name came to be: created by the team, or observed on the first trusted event of that name.

statusstringrequired

Whether the name takes events: active, or archived, which takes no new events while existing summaries are kept.

total_countintegerrequired

How many events of this name have arrived in all.

Format: int64

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.