Mutation
mutation UpdateInternalNotifications($input: UpdateInternalNotificationsInput!) {
updateInternalNotifications(input: $input) {
internalNotifications {
id
userId
type
title
description
details {
__typename
... on NoteMentionNotificationDetail {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"notificationIds": [
"id"
]
}
}Response
{
"data": {
"updateInternalNotifications": {
"internalNotifications": [
{
"id": "id",
"userId": "id",
"type": "string",
"title": "string",
"description": "string",
"details": {
"__typename": "NoteMentionNotificationDetail"
}
}
],
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Mutations
updateInternalNotifications
Marks one or more internal notifications as read, unread, or archived.
Pass the notification IDs to update along with the desired readAt and/or archivedAt timestamps.
Set readAt to null to mark a notification as unread; set archivedAt to a timestamp to archive it.
Returns the updated notifications. Requires the user:read permission.
MUTATION
updateInternalNotifications(input: UpdateInternalNotificationsInput!): UpdateInternalNotificationsOutput!Arguments
input
required
internalNotifications
error
Mutation
mutation UpdateInternalNotifications($input: UpdateInternalNotificationsInput!) {
updateInternalNotifications(input: $input) {
internalNotifications {
id
userId
type
title
description
details {
__typename
... on NoteMentionNotificationDetail {
__typename
}
}
}
error {
message
type
code
fields {
field
message
type
}
}
}
}Variables
{
"input": {
"notificationIds": [
"id"
]
}
}Response
{
"data": {
"updateInternalNotifications": {
"internalNotifications": [
{
"id": "id",
"userId": "id",
"type": "string",
"title": "string",
"description": "string",
"details": {
"__typename": "NoteMentionNotificationDetail"
}
}
],
"error": {
"message": "string",
"type": "VALIDATION",
"code": "string",
"fields": [
{
"field": "string",
"message": "string",
"type": "VALIDATION"
}
]
}
}
}
}Was this page helpful?

