AlmondTill/G3N API

unhighlightBookmark

mutation · in the family Your own session

What it does

Remove your highlight mark from a bookmark. The bookmark itself stays.

Clear your highlight. 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:

Arguments

NameTypeRequiredNotes
targetTypeString String!yes
targetIdID ID!yes

Returns

BookmarkRef BookmarkRef! — One raw bookmark row.

Example request

graphql
mutation ExampleUnhighlightBookmark($targetType: String!, $targetId: ID!) {
  unhighlightBookmark(targetType: $targetType, targetId: $targetId) {
    subjectKind
    ownerId
    targetType
    targetId
    createdAt
    createdBy
    boostedAt
    popAt
    highlightedAt
  }
}

Variables:

json
{
  "targetType": "<target type>",
  "targetId": "01900000-0000-7000-8000-8b67f1680000"
}

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

Example response

json
{
  "data": {
    "unhighlightBookmark": {
      "subjectKind": "USER",
      "ownerId": "01900000-0000-7000-8000-9b22be740000",
      "targetType": "<target type>",
      "targetId": "01900000-0000-7000-8000-8b67f1680000",
      "createdAt": "2027-01-31T00:00:00.000Z",
      "createdBy": "01900000-0000-7000-8000-0b14e5a60000",
      "boostedAt": "2027-01-31T00:00:00.000Z",
      "popAt": "2027-01-31T00:00:00.000Z",
      "highlightedAt": "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