Skip to main content
Update Comment
Updates a comment’s content, its metadata, or both. Only the comment’s author, or a request with a service key, can update a comment. A comment its author deleted can’t be edited: the request returns 404 comment/not-found and nothing is changed. Authentication required.

Path Parameters

string
required
The UUID of the comment to update.

Body Parameters

Both fields are individually optional, but at least one must be provided.
string
The new text content for the comment. Cannot be empty. Omit to leave the existing content untouched.
object
Arbitrary JSON metadata, up to 1 MB. Replaces the stored metadata wholesale rather than merging into it.

Response

Returns the updated Comment object.

Error Responses

Returned when neither content nor metadata is supplied, when content is an empty string, or when metadata exceeds 1 MB.
Returned when the comment doesn’t exist or was deleted by its author.