tools.kryphocron.feed.updatePostPrivate

Change the audience of an existing postPrivate record in the writer's own repository. Only audienceList changes; the URI stays the same and the record CID changes. Replies are refused, since a reply's audience is its thread's.

Details · procedure
Kindprocedure
Authorityfeed.kryphocron.tools
Commit rev3n2ivyhujgc2a
Indexed

Procedure

procedure · POST

Input

application/json

audienceList

requiredstring · at-uri

AT-URI of one of the writer's own policy.audience records.

repo

requiredstring · did

DID of the writer's repository. Must be the authenticated account.

rkey

requiredstring · record-key

Record key of the post to update.

  • maxLength: 512

swapRecord

string · cid

Compare and swap with the post's current record CID.

Output

application/json

cid

requiredstring · cid

CID of the updated record.

uri

requiredstring · at-uri

Errors

InvalidRequest

The post does not exist or is a reply, or audienceList does not name an existing audience record of the writer's.

Forbidden

The caller may not write to this repository, or the host does not allow this account private-tier writes.

UnsupportedNamespace

The host does not have the private tier enabled.

InvalidSwap

swapRecord did not match the post's current record CID.

Similar lexicons

semantic match

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

  • tools.kryphocron.policy.manageAudience

    procedure not from the namespace authority

    Create or update a policy.audience record in the writer's own repository. With the rkey of an existing record the record is replaced; otherwise a record is created. Membership changes apply to every post that names the audience.

  • Create a postPrivate reply under another account's audience. The record must carry reply.parent and an audienceList naming the audience record of the post being replied to; the writer is checked against that audience before the write. Every audience refusal returns the same Forbidden response.

  • Delete a postPrivate record from the writer's own repository.

  • Delete a policy.audience record from the writer's own repository. Posts that still name the audience are then readable by their authors only.