Marks the notifications raised by one message seen.
Input
Encoding
application/jsonchannel
stringspace-ref
Required
The channel the message was posted in.
message
refsocial.colibri.beta.defs#recordRef
Required
The message whose notifications are marked seen.
Output
Encoding
application/jsonunread
integer
Required
Number of unread notifications remaining.
Errors
AuthRequired
The request has no valid service auth. ChannelNotFound
No channel matches the given space reference. MessageNotFound
No message matches the given record reference in that channel. 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": [
"channel",
"message"
],
"properties": {
"channel": {
"type": "string",
"format": "space-ref",
"description": "The channel the message was posted in."
},
"message": {
"ref": "social.colibri.beta.defs#recordRef",
"type": "ref",
"description": "The message whose notifications are marked seen."
}
}
},
"encoding": "application/json"
},
"errors": [
{
"name": "AuthRequired",
"description": "The request has no valid service auth."
},
{
"name": "ChannelNotFound",
"description": "No channel matches the given space reference."
},
{
"name": "MessageNotFound",
"description": "No message matches the given record reference in that channel."
}
],
"output": {
"schema": {
"type": "object",
"required": [
"unread"
],
"properties": {
"unread": {
"type": "integer",
"description": "Number of unread notifications remaining."
}
}
},
"encoding": "application/json"
},
"description": "Marks the notifications raised by one message seen."
}