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 |
Procedure
procedure · POSTInput
application/jsonOutput
application/jsontheme
refThe theme chosen now, as getWorkspace gives it; absent, the system's.
Errors
InvalidRequest
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.
NotFound
No such record.
AuthRequired
No live web session or HUD access token: sign in.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
Make a theme for the workspace.
-
Delete a theme the person made.
-
A theme a person made for HUD's workspace, for anyone to draw it in.
-
place.hud.getWorkspace
queryThe signed-in person's workspace.
-
Themes people made for the workspace.