HOC SiteDocumentation

mark_notification_read

Mark notifications read for the authenticated platform user. Pass notificationId for one item, notificationIds[] for several, or all=true for every unread item. Returns href when a single id was marked and the notification links somewhere.

mark_notification_read · Group: notifications

Inputs

notificationId

optional — uuid

notificationIds

optional — uuid[]

all

optional — boolean

Schema

{
  "name": "mark_notification_read",
  "group": "notifications",
  "inputFields": [
    {
      "name": "notificationId",
      "required": false,
      "schemaHint": "uuid"
    },
    {
      "name": "notificationIds",
      "required": false,
      "schemaHint": "uuid[]"
    },
    {
      "name": "all",
      "required": false,
      "schemaHint": "boolean"
    }
  ]
}

Maps to

  • POST /api/v1/{locale}/platform/notifications/{id}/read → API
  • POST /api/v1/{locale}/platform/notifications/read → API