tools.kryphocron.policy.manageAudience
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.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | policy.kryphocron.tools |
| Commit rev | 3n2ivyfeb2s2a |
| Indexed |
Procedure
procedure · POSTInput
application/jsonDID of the writer's repository. Must be the authenticated account.
rkey
string · record-keyRecord key. Names the record to update when it exists; a TID is generated when absent.
maxLength: 512
swapRecord
string · cidOn update, compare and swap with the current record CID.
validate
booleanLexicon validation preference, as for com.atproto.repo.createRecord.
Output
application/jsonErrors
InvalidRequest
The record is malformed.
Forbidden
The caller may not write to this repository, or the host does not allow this account private-tier writes.
InvalidSwap
swapRecord did not match the current record CID.
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
tools.kryphocron.feed.updatePostPrivate
procedureChange 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.
-
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.
-
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.
-
com.atproto.repo.putRecord
procedureWrite a repository record, creating or updating it as needed. Requires auth, implemented by PDS.
-
com.atproto.repo.createRecord
procedureCreate a single new repository record. Requires auth, implemented by PDS.