place.hud.publishApp

Write a place.hud.app record in the person's own repository at rkey, a new one or in place of the one there, its blobs uploaded before (place.hud.uploadBlob with purpose app), checked as HUD checks an app it runs: its lexicon, its kinds' defs and its words. 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 rev3n3klag3m2zju
Indexed

Showing version bafyreigcpqatkaybswdkm76fuwxl7zszh62arhmgbsclxcel63mgoidz74. Show the latest

Procedure

procedure · POST

Input

application/json

html

requiredblob

Its document, uploaded first (place.hud.uploadBlob with purpose app).

  • maxSize: 2000000
  • accept: text/html

icon

blob

Its icon, uploaded first.

  • maxSize: 256000
  • accept: image/png, image/webp

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

rkey

requiredstring

The app's record key, its address's last part: 1 to 64 of a-z, 0-9 and -.

  • minLength: 1
  • maxLength: 64

summary

string

What it is.

  • maxLength: 3000
  • maxGraphemes: 300

words

blob

Its words by language, uploaded first.

  • maxSize: 512000
  • accept: application/json

writers

array

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

  • maxLength: 200
itemsref

Output

application/json

cid

requiredstring · cid

uri

requiredstring · at-uri

url

requiredstring · uri

The app's page, to share: /a/<handle>/<rkey> on this server.

Errors

InvalidRequest

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

AuthRequired

No live web session or HUD access token, or the person's sign-in at their PDS ended: sign in.

UpstreamFailure

Their PDS refused the write; or they signed in before HUD asked to publish apps, which the message says: sign in again.

Similar lexicons

semantic match

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