Overview
Information
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.
This example request is changing the topics and the body of the article.
- cURL
-u answerhub:test123
-H "Accept: application/json"
-H "Content-type: application/json"
-X PUT -d '{"topics":"confused, editing, testing","body":"I am confused about ghost edits"}'"https://apidocs.cloud.answerhub.com/services/v2/article/976.json?ghostEdit=true" -v
-u answerhub:test123
-H "Accept: application/json"
-H "Content-type: application/json"
-X PUT -d '{"topics":"confused, editing, testing","body":"I am confused about ghost edits"}'"https://apidocs.cloud.answerhub.com/services/v2/article/976.json?ghostEdit=true" -v
Successful Response will result in a 204 - No Content HTTP Status and will not return a JSON Object in the response body. You can see the change in the community UI.
For this example, we changed the body from "testing ghost edit" to "I am confused about ghost edits". You can see this change in the revisions list.
Priyanka Bhotika
Comments