Start a conversation

Ghost Edit Articles

Overview


Information

/article/{article_id}.json?ghostEdit=true

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 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

Sample Response

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.

Choose files or drag and drop files
Was this article helpful?
Yes
No
  1. Priyanka Bhotika

  2. Posted

Comments