Liveblocks icon

Liveblocks

Call the Liveblocks REST API (rooms, comments, feeds, Yjs, AI, and more)

Comment → Edit

AI-generated

Summary

Edit a specific comment within a thread in a Liveblocks room by providing updated content, metadata, timestamps, and attachments.

Inputs

  • Room ID (required) — Identifier of the Liveblocks room containing the thread and comment.
  • Thread ID (required) — Identifier of the thread where the comment exists.
  • Comment ID (required) — Identifier of the comment to edit.
  • Body — JSON object specifying the updated content of the comment.
  • Metadata — JSON object with updated metadata for the comment.
  • Edited At — Timestamp string indicating when the comment was edited.
  • Attachment IDs — JSON array or comma-separated string of attachment IDs associated with the comment.
  • Include Request in Error — Flag to include request details in error messages for debugging failed API calls.

Output shape

a single record representing the edited comment object returned from Liveblocks API

The output includes updated comment data as per Liveblocks API response. Errors may include detailed request info if the 'Include Request in Error' option is enabled.

Links

Discussion