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 |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "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.",
"errors": [
{
"description": "The post does not exist or is a reply, or audienceList does not name an existing audience record of the writer's.",
"name": "InvalidRequest"
},
{
"description": "The caller may not write to this repository, or the host does not allow this account private-tier writes.",
"name": "Forbidden"
},
{
"description": "The host does not have the private tier enabled.",
"name": "UnsupportedNamespace"
},
{
"description": "swapRecord did not match the post's current record CID.",
"name": "InvalidSwap"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"audienceList": {
"description": "AT-URI of one of the writer's own policy.audience records.",
"format": "at-uri",
"type": "string"
},
"repo": {
"description": "DID of the writer's repository. Must be the authenticated account.",
"format": "did",
"type": "string"
},
"rkey": {
"description": "Record key of the post to update.",
"format": "record-key",
"maxLength": 512,
"type": "string"
},
"swapRecord": {
"description": "Compare and swap with the post's current record CID.",
"format": "cid",
"type": "string"
}
},
"required": [
"repo",
"rkey",
"audienceList"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"cid": {
"description": "CID of the updated record.",
"format": "cid",
"type": "string"
},
"uri": {
"format": "at-uri",
"type": "string"
}
},
"required": [
"uri",
"cid"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "tools.kryphocron.feed.updatePostPrivate",
"lexicon": 1
}