Ghost Edit Comments



Permissions & Notes:

  • You must have the new permission called Hide moderator edit under Moderation Roles in the Advanced Editor, to grant moderators the opportunity to see the checkbox to hide their edits in the community UI.

Sample Request

This sample request is changing the body of the comment (ID: 979) for the article (ID: 976).

-u answerhub:test123
-H "Accept: application/json"
-H "Content-type: application/json"
-X PUT -d '{"body":"this comment has been changed via API"}'  "" -v

Sample Respone

Successful Sample Request will result in a 204 - No content HTTP Status and will not return a JSON Object in the response body. You can see the changes to the comment in the community UI. We changed this comment body from "creating a comment to change with ghost edit via the api" to "this comment has been changed via API." You can see this change in the revisions list.

Click Try It! to start a request and see the response here!