social.coves.community.comment.update
Update an existing comment's content, facets, embed, languages, or labels. Threading references (reply.root and reply.parent) are immutable and cannot be changed.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | comment.community.coves.social |
| Indexed |
Showing version bafyreihkaet2gwiuzpr4xltvhbyvzuqgzsmwpyt37pwult7ikcx2wji6vq. Show the latest
Checks
Validlarge-stringdefs.main.input.schema.properties.contentmaxLength is over 20 KB. Use a blob for content that large.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Update an existing comment's content, facets, embed, languages, or labels. Threading references (reply.root and reply.parent) are immutable and cannot be changed.",
"errors": [
{
"description": "Comment with the specified URI does not exist",
"name": "CommentNotFound"
},
{
"description": "Updated comment content exceeds maximum length constraints",
"name": "ContentTooLong"
},
{
"description": "Updated comment content is empty or contains only whitespace",
"name": "ContentEmpty"
},
{
"description": "User is not authorized to update this comment (not the author)",
"name": "NotAuthorized"
},
{
"description": "Rich text facets are malformed, exceed limits, or reference byte ranges outside the content",
"name": "InvalidFacets"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"content": {
"description": "Updated comment text content",
"maxGraphemes": 10000,
"maxLength": 100000,
"type": "string"
},
"embed": {
"description": "Updated embedded media or quoted posts",
"refs": [
"social.coves.embed.images",
"social.coves.embed.post"
],
"type": "union"
},
"facets": {
"description": "Updated annotations for rich text (mentions, links, formatting, block structure)",
"items": {
"ref": "social.coves.richtext.facet",
"type": "ref"
},
"maxLength": 200,
"type": "array"
},
"labels": {
"description": "Updated self-applied content labels",
"ref": "com.atproto.label.defs#selfLabels",
"type": "ref"
},
"langs": {
"description": "Updated languages used in the comment content (ISO 639-1)",
"items": {
"format": "language",
"type": "string"
},
"maxLength": 3,
"type": "array"
},
"uri": {
"description": "AT-URI of the comment to update",
"format": "at-uri",
"type": "string"
}
},
"required": [
"uri",
"content"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"cid": {
"description": "New CID of the updated comment record",
"format": "cid",
"type": "string"
},
"uri": {
"description": "AT-URI of the updated comment (unchanged from input)",
"format": "at-uri",
"type": "string"
}
},
"required": [
"uri",
"cid"
],
"type": "object"
}
},
"type": "procedure"
}
},
"id": "social.coves.community.comment.update",
"lexicon": 1
}