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 |
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"
},
{
"description": "An #image facet breaks a placement rule: its index does not name an image of an images embed, it shares its facet with another feature, it places an index already placed, its range is empty, or its range lies inside a #code or #codeBlock range",
"name": "InvalidImageFacet"
},
{
"description": "The embed is not a social.coves.embed.images, social.coves.embed.imagesWithAttachment with a quoted post, or social.coves.embed.post that satisfies its lexicon and the embed write rules; the message describes the failure",
"name": "InvalidEmbed"
},
{
"description": "The embed carries more than 8 images",
"name": "TooManyImages"
}
],
"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.imagesWithAttachment",
"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
}