Change notification preferences
Change the quiet hours, the delivery mode and the zone.
Quiet hours hold a notification back rather than dropping it: something due at three in the morning goes out when the quiet is over.
Asking for a daily summary without an hour to send it at is refused with 422, and so is a time of day that is not one, or a zone the application does not know.
Body parameters
Sent as JSON. Anything not listed here is ignored.
Whether there are hours during which nothing may be delivered. It cannot be null.
The local time from which nothing may go out, as HH:MM. Needed when quiet hours are on.
The local time from which delivery may resume, as HH:MM. Needed when quiet hours are on.
Either immediate or digest. It cannot be null.
The local time the daily summary is sent, as HH:MM. Needed when the mode is digest.
Which days the summary is sent, as numbers from 0 for Sunday to 6 for Saturday. Null sends it every day.
The zone quiet hours and the summary hour are read in. Unlike other fields, null keeps whatever is saved rather than clearing it.
Returns
The preferences as they now stand.
The preference.
Always notification_preference. It names the kind of record, so a caller holding several kinds can tell them apart without looking at where they came from.
The id of this record, as a string even when it reads as a number. It is what every endpoint naming this record takes.
Everything the record holds.
Whether there are hours during which nothing may be delivered.
The local time from which nothing may go out, as HH:MM, or null when quiet hours are off.
The local time from which delivery may resume, as HH:MM, or null when quiet hours are off.
Whether each notification goes out on its own, with immediate, or is folded into one summary a day, with digest.
The local time the daily summary is sent, as HH:MM, or null when nothing is folded.
Which days the summary is sent, as numbers from 0 for Sunday to 6 for Saturday, or null for every day.
The zone quiet hours and the summary hour are read in, up to 64 characters.
Where to find this record.
The absolute address this record is read from.
Rate limit
Sixty requests per minute, per user, shared by every key and device. Every answer carries the budget left in X-RateLimit-Remaining.
Keys act as you, with exactly the access you have. Make one per integration so you can revoke it alone.