{ "lexicon": 1, "id": "place.hud.setTabOrder", "description": "Reorder the tabs.", "defs": { "main": { "type": "procedure", "description": "Put the open tabs in this order: those named first, as named, then any open but not named, as they were. 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.", "input": { "encoding": "application/json", "schema": { "type": "object", "required": [ "tabs" ], "properties": { "tabs": { "type": "array", "maxLength": 100, "items": { "type": "ref", "ref": "place.hud.defs#tabRef" }, "description": "Open canvases, each once." } } } }, "output": { "encoding": "application/json", "schema": { "type": "object", "required": [ "open", "current" ], "properties": { "open": { "type": "array", "items": { "type": "ref", "ref": "place.hud.defs#tab" }, "description": "The canvases open as tabs, in their order." }, "current": { "type": "string", "minLength": 12, "maxLength": 12, "description": "The canvas current now, one of open." } } } }, "errors": [ { "name": "InvalidRequest", "description": "A canvas named is not open, or is named twice." }, { "name": "AuthRequired", "description": "No live web session or HUD access token: sign in." } ] } } }