Update Comment
Replace a comment body within your comment-edit permissions.
POST /v1/update-comment
Replace a comment body within your comment-edit permissions. Plain-text line breaks are preserved. Optional HTML takes precedence and is sanitized by the API; its plain-text mirror is derived from the HTML. Use delete-comment to remove a comment instead of replacing it with an empty body.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
commentId | string | Yes | |
text | string | Yes | Replacement comment text |
html | string | No | Optional replacement HTML, taking precedence over text |
{
"commentId": "string",
"text": "string",
"html": "string"
}Response
{
"id": "string",
"uid": "string",
"text": "string",
"html": "string",
"updatedAt": "2024-01-01T00:00:00Z"
}Example
curl -X POST https://rest.blue.app/v1/update-comment \
-H "Authorization: Bearer $BLUE_TOKEN" \
-H "blue-org-id: $BLUE_ORG_ID" \
-H "Content-Type: application/json" \
-d '{"commentId":"string","text":"string","html":"string"}'