Skip to content
dimmiDocs

Messenger

Set who sees a messenger

PATCH/api/v1/widget-settings/{widget}/audiences

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the settings:write ability

Path parameters

widgetstringrequired

Id of the messenger, starting with wgt_, such as wgt_01jx2m8k4t. Find it with GET /widget-settings.

Body

application/json
launcherany

An audience rule for who sees the launcher; null means everyone.

startany

An audience rule for who may start a conversation; null means everyone.

tabsobject

A rule per tab, keyed help or changelog.

Response 200

OK
dataobjectrequired
Show child attributes
objectstringrequired

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

rulesanyrequired

The messenger's audience rules as stored, a JSON object with launcher (who sees the launcher), start (who may start a conversation) and tabs (who sees each tab).

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.