place.hud.publishChatArtifact

Publish a version of an app artifact of one of the person's chats, as publishApp does: its document and words copied as blobs of the person's own repository, then a place.hud.app record written at rkey, a new one or in place of the one there. The artifact keeps where it was published. A view artifact has no publish. 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.

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

Procedure

procedure · POST

Input

application/json

artifact

requiredstring

The artifact's key.

  • minLength: 1
  • maxLength: 40

chat

requiredstring
  • minLength: 12
  • maxLength: 12

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

version

integer

The version to publish; its latest by default.

  • minimum: 1

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

NotFound

No chat of this id is the person's, or it has no such artifact or version.

InvalidRequest

The artifact is a view, or the rkey is not one: 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 the version's files could not be read; 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.

  • Publish a frame app.

  • An app a chat made, as its page shows it.

  • place.hud.chat.artifact

    record not from the namespace authority

    Something a chat made, an app or a view, in its person's repo in the chat's space (place.hud.chat), keyed by its key: the name the model gave it (1 to 40 of a-z, 0-9 and -). Its versions are place.hud.chat.version records keyed <key>-<version>.