place.hud.setTheme
Draw the person's workspace in a theme, wherever they are signed in: one of HUD's, by key, or anyone's place.hud.theme, by uri, its colours copied as they are now; or with neither, in the system's light or dark. Their other pages and apps are told the workspace changed (place.hud.defs#canvasesEvent), and draw it so too. 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 | 3n3jbjekf5rju |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Draw the person's workspace in a theme, wherever they are signed in: one of HUD's, by key, or anyone's place.hud.theme, by uri, its colours copied as they are now; or with neither, in the system's light or dark. Their other pages and apps are told the workspace changed (place.hud.defs#canvasesEvent), and draw it so too. 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": "Both key and uri; no theme of that key; or a record that is not a place.hud.theme whose every text reads at 4.5:1.",
"name": "InvalidRequest"
},
{
"description": "No such record.",
"name": "NotFound"
},
{
"description": "No live web session or HUD access token: sign in.",
"name": "AuthRequired"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"key": {
"description": "One of HUD's themes, as getWorkspace's themes name them.",
"maxLength": 64,
"type": "string"
},
"uri": {
"description": "A person's theme: a place.hud.theme record.",
"format": "at-uri",
"type": "string"
}
},
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"theme": {
"description": "The theme chosen now, as getWorkspace gives it; absent, the system's.",
"ref": "place.hud.defs#theme",
"type": "ref"
}
},
"type": "object"
}
},
"type": "procedure"
}
},
"description": "Choose the theme the workspace is drawn in.",
"id": "place.hud.setTheme",
"lexicon": 1
}