POST Settings/Post
Upadte user's do not disturb and other notifications settings
Request Information
URI Parameters
None.
Body Parameters
SettingsViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceToken |
The device associated with these settings |
string |
Required |
| DoNotDisturb |
if true then the device is is do not disturb |
boolean |
None. |
| DoNotDisturbStart |
datetime start of the do not disturb time range (UTC) |
date |
None. |
| DoNotDisturbEnd |
datetime end of the do not disturb time range (UTC) |
date |
None. |
| NotifyOnComments |
if true the device is notified for new comments (accordingly to other business rules) |
boolean |
None. |
| NotifyOnNews |
if true the device is notified for new news (accordingly to other business rules) |
boolean |
None. |
| NotifyOnPost |
if true the device is notified for new community posts (accordingly to other business rules) - NOT USED ANYMORE |
boolean |
None. |
| TimeZoneInfo |
ex : "Europe/Paris" |
string |
None. |
Request Formats
application/json, text/json
{
"DeviceToken": "sample string 1",
"DoNotDisturb": true,
"DoNotDisturbStart": "2026-10-05T18:59:46.5302063+00:00",
"DoNotDisturbEnd": "2026-10-05T18:59:46.5302063+00:00",
"NotifyOnComments": true,
"NotifyOnNews": true,
"NotifyOnPost": true,
"TimeZoneInfo": "sample string 6"
}
application/xml, text/xml
<SettingsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CGI.MPulse.DeviceRegistration.Models"> <DeviceToken>sample string 1</DeviceToken> <DoNotDisturb>true</DoNotDisturb> <DoNotDisturbEnd>2026-10-05T18:59:46.5302063+00:00</DoNotDisturbEnd> <DoNotDisturbStart>2026-10-05T18:59:46.5302063+00:00</DoNotDisturbStart> <NotifyOnComments>true</NotifyOnComments> <NotifyOnNews>true</NotifyOnNews> <NotifyOnPost>true</NotifyOnPost> <TimeZoneInfo>sample string 6</TimeZoneInfo> </SettingsViewModel>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
SettingsViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DeviceToken |
The device associated with these settings |
string |
Required |
| DoNotDisturb |
if true then the device is is do not disturb |
boolean |
None. |
| DoNotDisturbStart |
datetime start of the do not disturb time range (UTC) |
date |
None. |
| DoNotDisturbEnd |
datetime end of the do not disturb time range (UTC) |
date |
None. |
| NotifyOnComments |
if true the device is notified for new comments (accordingly to other business rules) |
boolean |
None. |
| NotifyOnNews |
if true the device is notified for new news (accordingly to other business rules) |
boolean |
None. |
| NotifyOnPost |
if true the device is notified for new community posts (accordingly to other business rules) - NOT USED ANYMORE |
boolean |
None. |
| TimeZoneInfo |
ex : "Europe/Paris" |
string |
None. |
Response Formats
application/json, text/json
{
"DeviceToken": "sample string 1",
"DoNotDisturb": true,
"DoNotDisturbStart": "2026-10-05T18:59:46.5377638+00:00",
"DoNotDisturbEnd": "2026-10-05T18:59:46.5377638+00:00",
"NotifyOnComments": true,
"NotifyOnNews": true,
"NotifyOnPost": true,
"TimeZoneInfo": "sample string 6"
}
application/xml, text/xml
<SettingsViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CGI.MPulse.DeviceRegistration.Models"> <DeviceToken>sample string 1</DeviceToken> <DoNotDisturb>true</DoNotDisturb> <DoNotDisturbEnd>2026-10-05T18:59:46.5377638+00:00</DoNotDisturbEnd> <DoNotDisturbStart>2026-10-05T18:59:46.5377638+00:00</DoNotDisturbStart> <NotifyOnComments>true</NotifyOnComments> <NotifyOnNews>true</NotifyOnNews> <NotifyOnPost>true</NotifyOnPost> <TimeZoneInfo>sample string 6</TimeZoneInfo> </SettingsViewModel>