Skip to content
dimmiDocs

Contacts and companies

Change the messenger event settings

PATCH/api/v1/event-settings

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the attributes:write ability

Body

application/json
messenger_new_eventsbooleanrequired

Whether the messenger may send any event name, defining the ones the workspace has not seen before. A plain boolean; leaving it out counts as false. Example: true.

Response 200

OK
dataobjectrequired
Show child attributes
messenger_new_eventsbooleanrequired

True when the messenger may send any event name from the browser, new names included; false when it may send only names the team opened to it.

objectstringrequired

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

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.