AlmondTill/G3N API

On this page

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).

Who may call it

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

Arguments

NameTypeRequiredNotes
targetTypeString String!yesNo further notes.
targetIdID ID!yesNo further notes.
teamIdIDnoNo further notes.

Returns

Boolean Boolean! — True or false.

Example request

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

Variables:

{
  "targetType": "<target type>",
  "targetId": "01900000-0000-7000-8000-446adfd50000",
  "teamId": "01900000-0000-7000-8000-3c35d4210000"
}

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

Example response

{
  "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