AlmondTill/G3N API

markNotificationRead

mutation · in the family Your own session

What it does

Mark one of your notices as read.

Mark one of your notices read. An absent row refuses NOT_FOUND/NOTIFICATION; an already-read notice returns unchanged (first read wins). Requires authentication.

Before you call

A signed-in user’s session — the call refuses an API key (AUTHZ/FORBIDDEN).

Capability area: Your own session — What every signed-in person may do for themselves — their session, their profile and their own work.

Roles that may call it:

What happens

The first read sets the time; reading again changes nothing.

Arguments

NameTypeRequiredNotes
notificationIdID ID!yes

Returns

NotificationRef NotificationRef! — One platform notice to your account. Month-bucketed at the occasion's own instant; the occasion facts are immutable; readAt stamps first-read-wins.

Example request

graphql
mutation ExampleMarkNotificationRead($notificationId: ID!) {
  markNotificationRead(notificationId: $notificationId) {
    id
    kind
    severity
    occasionAt
    tokenAccountId
    fraudAlertId
    searchJobId
    exportJobId
    trainingCertificateId
    trainingRequirementId
    changeTag
    fillDraftId
    createdAt
    readAt
  }
}

Variables:

json
{
  "notificationId": "01900000-0000-7000-8000-146a28660000"
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

json
{
  "data": {
    "markNotificationRead": {
      "id": "01900000-0000-7000-8000-37386ae00000",
      "kind": "burn_breach",
      "severity": "blocking",
      "occasionAt": "2027-01-31T00:00:00.000Z",
      "tokenAccountId": "01900000-0000-7000-8000-b0839b1d0000",
      "fraudAlertId": "01900000-0000-7000-8000-debfd5e50000",
      "searchJobId": "01900000-0000-7000-8000-224c79000000",
      "exportJobId": "01900000-0000-7000-8000-c6a1b59a0000",
      "trainingCertificateId": "01900000-0000-7000-8000-cdd03eb60000",
      "trainingRequirementId": "01900000-0000-7000-8000-a9a88e920000",
      "changeTag": "<change tag>",
      "fillDraftId": "01900000-0000-7000-8000-30ff2b9b0000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "readAt": "2027-01-31T00:00:00.000Z"
    }
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer