Skip to content
Notification Settings

Update Message Notification Settings

Submits the push settings of one message group. Call it after the Client turns a push channel on or off or changes a personalized setting.

Pass every channel code that should be on in push_channel; channels not listed are treated as off. Pass the code and selected values of each personalized setting of the group in personal_configs. Start from the current settings returned by GET /v6/message/user_config, apply the change, and submit the full set.

After success, the settings apply to later notifications of the group. On failure, show message and restore the switches in the UI to their previous state.

POSThttps://api.lbkrs.com/v6/message/user_config/update

Request body application/json

group_idintegerrequired

Message group ID from list[].group_id of GET /v6/message/user_config

push_channelarray<string>required

Codes of the channels to turn on, from available_channel[].code. Pass an empty array to turn off every channel of the group

personal_configsarray<object>

Personalized push settings. Pass an empty array when the group has none

Child attributes
codestringrequired

Setting code from personal_configs[].code

valuesarray<integer>required

Selected option values from personal_configs[].channel[].value. For a switch-style setting, pass [1] or [0]

Responses

HTTP 200The request succeeded. A code of 0 means the push settings were saved.
codeintegerrequired

Business status code, 0 indicates success

messagestringrequired

Human-readable result or error message.

Whale Docs