place.hud.openCanvas
Open a canvas as a tab, at the end of those open, and make it current; one open already just becomes current. An invitation to it is accepted. 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.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | hud.place |
| Commit rev | 3n3jbjegybqju |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Open a canvas as a tab, at the end of those open, and make it current; one open already just becomes current. An invitation to it is accepted. 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 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": {
"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"
}
},
"required": [
"canvas"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"canvas": {
"ref": "place.hud.defs#canvasView",
"type": "ref"
},
"current": {
"description": "A canvas's id: 12 hex digits, its space's key where it is kept in one.",
"maxLength": 12,
"minLength": 12,
"type": "string"
},
"open": {
"description": "The canvases open as tabs, in their order.",
"items": {
"ref": "place.hud.defs#tab",
"type": "ref"
},
"type": "array"
}
},
"required": [
"canvas",
"open",
"current"
],
"type": "object"
}
},
"type": "procedure"
}
},
"description": "Open a canvas as a tab.",
"id": "place.hud.openCanvas",
"lexicon": 1
}