games.gamesgamesgamesgames.graph.toggleLike

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

Details · procedure
Kindprocedure
Authoritygraph.gamesgamesgamesgames.games
Indexed
cid bafyreibuio63snm5wsews4qltxg67rpaiu7af443dyi6qqe4a6fnzjv46u

Checks

Valid
  • unlimited-string defs.main.output.schema.properties.actionNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.output.schema.properties.cidNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Toggle a like on a game. Creates a like record if none exists, deletes it if one does.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "subject": {
              "description": "AT URI of the game record to like/unlike.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "subject"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "action": {
              "description": "Whether the game was liked or unliked.",
              "knownValues": [
                "liked",
                "unliked"
              ],
              "type": "string"
            },
            "cid": {
              "description": "CID of the created like record. Present when action is 'liked'.",
              "type": "string"
            },
            "uri": {
              "description": "AT URI of the created like record. Present when action is 'liked'.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "action"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "games.gamesgamesgamesgames.graph.toggleLike",
  "lexicon": 1
}