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.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | hud.place |
| Commit rev | 3n3jbjeio6sju |
| Indexed |
Procedure
procedure · POSTInput
application/jsonThe artifact's key.
minLength: 1maxLength: 40
minLength: 12maxLength: 12
The app's record key, its address's last part: 1 to 64 of a-z, 0-9 and -.
minLength: 1maxLength: 64
version
integerThe version to publish; its latest by default.
minimum: 1
Output
application/jsonErrors
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 matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
place.hud.publishApp
procedurePublish a frame app.
-
place.hud.getChatApp
queryAn app a chat made, as its page shows it.
-
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>.