Delete one’s own comment
Takes the comment back. A thread’s first comment with replies stays in its place without its text (meta.deleted, body null), so the thread stays readable; a reply, or a thread without replies, is gone (404 from then on), and the last reply of a deleted thread takes the thread with it. The text is not kept: a comment.delete audit event records that it was deleted (data.kept: whether it stays as deleted), never the text. Only the comment’s author, while they may comment on its module (as the change set’s author, or a reviewer holding content.review in a role that covers it): 403 for anyone else who sees the comment, and 404, exactly like a missing one, for anyone who does not. Only on an open change set (draft, in-review or approved). Nobody may edit or delete another person’s comment, admins included. Needs the content.read permission.
bearerAuthorizationBearer <JWT>A service account's token (ccms_sat_…, issued by POST /service-accounts/{id}/tokens), or, for local use and demo mode, the server's shared CCMS_API_TOKEN.
changeSetId*stringThe change set’s ID (a UUID). One that names no change set, malformed or not, is 404.
uuidcommentId*stringThe comment’s ID (a UUID). One that names no comment of this change set, malformed or not, is 404.
uuidX-Ccms-User?stringDemo mode only (CCMS_AUTH_MODE=demo): the user ID to act as. The bearer token is still required; without demo mode the header is refused (400).
Deleted.
curl -X DELETE 'http://localhost:3000/change-sets/497f6eca-6276-4993-bfeb-53cbbbba6f08/comments/497f6eca-6276-4993-bfeb-53cbbbba6f08'