Delete your comment, or one you moderate
DELETE /api/member/comments/{commentId}. Delete your comment, or one you moderate. Headless LMS Discussion API reference.
The author can delete their own comment; anyone else needs communities:moderate on the community for a post comment, or courses:moderate on the course for a lesson comment. The comment is marked removed and keeps its place in the thread. Deleting a removed comment returns it unchanged.
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/api/member/comments/string"{ "id": "string", "activityId": "string", "postId": "string", "communityId": "string", "parentId": "string", "author": { "id": "string", "firstName": "string", "lastName": "string", "displayName": "string", "headline": "string", "image": "string", "imageAssetId": "string", "imageUrl": "string", "team": true, "roleName": "string" }, "body": "string", "status": "pending", "removedBy": { "id": "string", "firstName": "string", "lastName": "string", "displayName": "string", "headline": "string", "image": "string", "imageAssetId": "string", "imageUrl": "string", "team": true, "roleName": "string" }, "reactions": { "property1": 0, "property2": 0 }, "viewerReaction": "string", "mentions": [ { "orgUserId": "string", "name": "string" } ], "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z"}{ "error": "string", "message": "string", "requestId": "string", "issues": [ { "path": "string", "message": "string" } ]}{ "error": "string", "message": "string", "requestId": "string"}{ "error": "string", "message": "string", "requestId": "string"}{ "error": "string", "message": "string", "requestId": "string"}{ "error": "string", "message": "string", "requestId": "string"}Revise your own comment PATCH
PATCH /api/member/comments/{commentId}. Revise your own comment. Headless LMS Discussion API reference.
Withdraw your reaction from a comment DELETE
DELETE /api/member/comments/{commentId}/reaction. Withdraw your reaction from a comment. Headless LMS Discussion API reference.