place.hud.placeTile

Move a tile right before or after another, one of the two. Within one column, it moves in its stack (before the head, it heads the column). Else its column moves beside the other's; a stacked tile comes out as a column of its own. Only the tile moved is rewritten, unless the numbers between two columns run out. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin on a procedure) or a HUD access token as Bearer.

Repository @lexicons.hud.place did:plc:3tzbz4pml36u4mkresb6pdhv not from the namespace authority
Details · procedure
Kindprocedure
Authorityhud.place
Commit rev3n3jbjehruyju
Indexed
cid bafyreiguivtabol53vswakqj4mokuzxxddusagqoj555yximduqabatdye

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Move a tile right before or after another, one of the two. Within one column, it moves in its stack (before the head, it heads the column). Else its column moves beside the other's; a stacked tile comes out as a column of its own. Only the tile moved is rewritten, unless the numbers between two columns run out. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin on a procedure) or a HUD access token as Bearer.",
      "errors": [
        {
          "description": "No canvas of this id that the person is in, or no tile of this id on it.",
          "name": "NotFound"
        },
        {
          "description": "The person's role does not allow it: a viewer changes no tile, and only the owner renames, deletes and shares.",
          "name": "Forbidden"
        },
        {
          "description": "The input is not what the method takes, or what it asks cannot be done.",
          "name": "InvalidRequest"
        },
        {
          "description": "No live web session or HUD access token: sign in.",
          "name": "AuthRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "after": {
              "description": "The tile it goes after.",
              "maxLength": 12,
              "minLength": 12,
              "type": "string"
            },
            "before": {
              "description": "The tile it goes before.",
              "maxLength": 12,
              "minLength": 12,
              "type": "string"
            },
            "canvas": {
              "description": "A canvas's id: 12 hex digits, its space's key where it is kept in one.",
              "maxLength": 12,
              "minLength": 12,
              "type": "string"
            },
            "tile": {
              "description": "The tile to move.",
              "maxLength": 12,
              "minLength": 12,
              "type": "string"
            }
          },
          "required": [
            "canvas",
            "tile"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "tile": {
              "ref": "place.hud.defs#tileView",
              "type": "ref"
            }
          },
          "required": [
            "tile"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Move a tile.",
  "id": "place.hud.placeTile",
  "lexicon": 1
}