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.

Repository @lexicons.kryphocron.tools did:plc:femlcrrqw5ja23dlsqc6qtgy not from the namespace authority
Details · procedure
Kindprocedure
Authoritypolicy.kryphocron.tools
Commit rev3n2ivyfeb2s2a
Indexed

Procedure

procedure · POST

Input

application/json

repo

requiredstring · did

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

rkey

string · record-key

Record key. Names the record to update when it exists; a TID is generated when absent.

  • maxLength: 512

swapRecord

string · cid

On update, compare and swap with the current record CID.

validate

boolean

Lexicon validation preference, as for com.atproto.repo.createRecord.

Output

application/json

cid

requiredstring · cid

CID of the written record.

uri

requiredstring · at-uri

Errors

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 match

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

  • 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.

  • Delete 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.

  • Write a repository record, creating or updating it as needed. Requires auth, implemented by PDS.

  • Create a single new repository record. Requires auth, implemented by PDS.