games.gamesgamesgamesgames.graph.toggleLike

lexicon.store View official

Documentation

Toggle a like on a game. Creates a like record if none exists, deletes it if one does.

main procedure

Toggle a like on a game. Creates a like record if none exists, deletes it if one does.

Input

Encodingapplication/json
subject stringat-uri Required

AT URI of the game record to like/unlike.

Output

Encodingapplication/json
action string Required

Whether the game was liked or unliked.

Known values: liked, unliked
cid string Optional

CID of the created like record. Present when action is 'liked'.

uri stringat-uri Optional

AT URI of the created like record. Present when action is 'liked'.

Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "type": "procedure",
  "input": {
    "schema": {
      "type": "object",
      "required": [
        "subject"
      ],
      "properties": {
        "subject": {
          "type": "string",
          "format": "at-uri",
          "description": "AT URI of the game record to like/unlike."
        }
      }
    },
    "encoding": "application/json"
  },
  "output": {
    "schema": {
      "type": "object",
      "required": [
        "action"
      ],
      "properties": {
        "cid": {
          "type": "string",
          "description": "CID of the created like record. Present when action is 'liked'."
        },
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description": "AT URI of the created like record. Present when action is 'liked'."
        },
        "action": {
          "type": "string",
          "description": "Whether the game was liked or unliked.",
          "knownValues": [
            "liked",
            "unliked"
          ]
        }
      }
    },
    "encoding": "application/json"
  },
  "description": "Toggle a like on a game. Creates a like record if none exists, deletes it if one does."
}

Lexicon Garden

@