Mark notifications as seen up to seenAt.
Input
Encoding
application/jsonseenAt
stringdatetime
Required
An RFC 3339 formatted timestamp.
token
string
Optional
Caller's push token. When supplied and bound to the viewer, the response carries the post-update device badge.
Output
Encoding
application/jsonbadge
integer
Optional
Device-wide unread sum across every DID bound to the supplied token.
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"seenAt"
],
"properties": {
"token": {
"type": "string",
"description": "Caller's push token. When supplied and bound to the viewer, the response carries the post-update device badge."
},
"seenAt": {
"type": "string",
"format": "datetime"
}
}
},
"encoding": "application/json"
},
"output": {
"schema": {
"type": "object",
"properties": {
"badge": {
"type": "integer",
"minimum": 0,
"description": "Device-wide unread sum across every DID bound to the supplied token."
}
}
},
"encoding": "application/json"
},
"description": "Mark notifications as seen up to seenAt."
}