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
| Kind | procedure |
|---|---|
| Authority | feed.kryphocron.tools |
| Commit rev | 3n2ivyhujgc2a |
| Indexed |
Procedure
procedure · POSTInput
application/jsonAT-URI of one of the writer's own policy.audience records.
DID of the writer's repository. Must be the authenticated account.
Record key of the post to update.
maxLength: 512
swapRecord
string · cidCompare and swap with the post's current record CID.
Output
application/jsonErrors
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 matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
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.
-
tools.kryphocron.feed.deletePostPrivate
procedureDelete a postPrivate record from the writer's own repository.
-
tools.kryphocron.policy.deleteAudience
procedureDelete a policy.audience record from the writer's own repository. Posts that still name the audience are then readable by their authors only.