POST
Mark notifications read or unread

Authorizations

Origin
string
header
required

Same-origin CSRF check. The Origin header must match the request host; enforced for every mutating verb (POST, PUT, PATCH, DELETE).

Body

application/json
action
enum<string>
required
Available options:
mark_read,
mark_unread
Example:

"mark_unread"

ids
string[]

Notification ids. Required with mark_unread, ignored with mark_read. Anything that isn't a non-empty string is skipped, and only the first 200 of the rest are used.

Example:

Response

{ "success": true }, plus flipped for mark_unread.

success
boolean
required
Example:

true

flipped
integer

mark_unread only. How many notifications the ids matched, counting any that were already unread. 0 when ids has no usable entries.

Example:

1