place.hud.createTheme

Write a place.hud.theme record in the person's own repository, for anyone to choose. It is not chosen: setTheme does that. 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 rev3n3jbje6ny3ju
Indexed

Procedure

procedure · POST

Input

application/json

colorScheme

requiredstring
  • maxLength: 16
  • knownValues: light | dark

name

requiredstring

What the theme is called.

  • maxLength: 640
  • maxGraphemes: 64

palette

requiredref

Output

application/json

theme

requiredref

The theme made, by its uri.

Errors

InvalidRequest

A name that is blank; a palette whose texts do not all read at 4.5:1 (checkTheme names which); or the person's PDS refused the write.

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.

  • place.hud.setTheme

    procedure not from the namespace authority

    Choose the theme the workspace is drawn in.

  • place.hud.theme

    record not from the namespace authority

    A theme a person made for HUD's workspace, for anyone to draw it in.

  • Publishes a theme as the account logged in to this appview's pages.

  • place.hud.deleteTheme

    procedure not from the namespace authority

    Delete a theme the person made.

  • place.hud.checkTheme

    procedure not from the namespace authority

    Check a palette's contrast.