Enable users to modify their comments with text updates, image management, and edit tracking for accountability
Permission Rule | Description | Enforcement |
---|---|---|
Owner Only | Users can only edit their own comments | Verified through userId comparison |
Not Deleted | Cannot edit comments marked as deleted | Checked via isDeleted status |
Content Validation | Text length and image format validation | Enforced before edit submission |
Parameter | Type | Required | Description |
---|---|---|---|
commentId | String | Yes | Unique identifier of the comment to edit |
text | String | No | Updated text content (max 50,000 characters) |
attachments | Array | No | Image attachments (replaces all existing attachments) |
metadata | Object | No | Custom metadata object for additional data |