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.

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

Procedure

procedure · POST

Input

application/json

key

string

One of HUD's themes, as getWorkspace's themes name them.

  • maxLength: 64

uri

string · at-uri

A person's theme: a place.hud.theme record.

Output

application/json

The 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 match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.