AlmondTill/G3N API

unbookmarkConstruct

mutation · in the family Your own session

What it does

Remove one of your bookmarks. The record itself is untouched.

Remove one bookmark: teamId absent = my personal row, present = the team's row (membership-gated like bookmarkConstruct). An absent row refuses NOT_FOUND/BOOKMARK. Requires authentication. Template class (universal staff work).

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
teamIdIDno

Returns

Boolean Boolean! — True or false.

Example request

graphql
mutation ExampleUnbookmarkConstruct($targetType: String!, $targetId: ID!, $teamId: ID) {
  unbookmarkConstruct(targetType: $targetType, targetId: $targetId, teamId: $teamId)
}

Variables:

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

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

Example response

json
{
  "data": {
    "unbookmarkConstruct": true
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer