place.hud.createAppRecord

Write a record of one of the collections a frame app names in its writes in the person's own repository (com.atproto.repo.createRecord), its $type set by HUD and the record checked against the collection's lexicon first, once they have allowed the app (place.hud.allowAppEntries) and signed in asking to write that collection. Never in a private instance: in one, the app writes to the public network as outside it. 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 rev3n3kx77ogsyju
Indexed

Procedure

procedure · POST

Input

application/json

app

requiredstring · at-uri

The app's place.hud.app record.

collection

requiredstring · nsid

Which of the collections it writes.

record

requiredunknown

The record, an object as the collection's lexicon describes it; its $type left out or the collection.

Output

application/json

cid

requiredstring · cid

uri

requiredstring · at-uri

Errors

NotFound

HUD has no frame app of this id.

InvalidRequest

The collection is not one the app names in its writes, the record does not match its lexicon, or the input is not what the method takes.

ConsentRequired

The person has not allowed this app to save for them: ask them, then place.hud.allowAppEntries.

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 the app asked to write this collection, 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.

  • Save an entry for a frame app.

  • Publish a frame app.

  • Delete one of the person's records a frame app writes.

  • place.hud.allowAppEntries

    procedure not from the namespace authority

    Allow a frame app to save the person's entries.

  • Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands