place.hud.previewApp

Keep a frame app, checked as place.hud.publishApp checks one, for 30 minutes in this server's memory, to run at /a/preview/<id> as a published one runs: its writes answered as a preview's, never sent, its entries those of app where given. Nothing reaches the person's PDS. Requires auth: the workspace's web session (its cookie, with X-HUD: 1 and the server's own Origin) or a HUD access token as Bearer.

Details · procedure
Kindprocedure
Authorityhud.place
Commit rev3n3klag34aiju
Indexed

Showing version bafyreiahqhnoqavwpu73nm43jh3j6dstlszw4wtiostovjdnxbyr3cz26a. Show the latest

Procedure

procedure · POST

Input

application/json

app

string · at-uri

The published app it would replace, whose entries the preview reads.

html

requiredstring

Its document, UTF-8, everything it loads inline.

  • maxLength: 2000000

kinds

requiredarray

Its kinds of entry, each a name (1 to 64 letters and digits in lowerCamelCase) and a lexicon object def.

  • minLength: 1
  • maxLength: 16
itemsref
Reference

name

requiredstring

What the app is called.

  • maxLength: 640
  • maxGraphemes: 64

summary

string

What it is.

  • maxLength: 3000
  • maxGraphemes: 300

words

unknown

Its words by language, en among them.

writers

array

Who alone may write its entries: anyone where it is left out.

  • maxLength: 200
itemsref

Output

application/json

preview

requiredstring

The preview's id: 26 characters of a-z and 2-7.

  • minLength: 26
  • maxLength: 26

url

requiredstring

Its page's path: /a/preview/<id>.

  • maxLength: 64

Errors

InvalidRequest

The app is not one HUD runs: what is wrong is named.

AuthRequired

No live web session or HUD access token: sign in.

LimitReached

This server keeps as many previews as it holds: try again in a while.

Similar lexicons

semantic match

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