API v3 / MCP update ignores "Automatically create a new Draft Version" and publishes changes immediately
Mariana Carolina Budzisch
Summary
Updating an article through API v3 (PUT /api/v3/articles/:id) or the MCP tool QuestionsUpdateQuestionTool always writes to the latest version of the article. If that version is published, the new content goes live immediately and replaces the previous content, including in the revision history, so it cannot be restored from the editor.
This happens even with the setting "Automatically create a new Draft Version of your Article when you edit a Published one" enabled (Settings > Review Process > Article Versions). The setting works in the editor, but is not applied to updates made through API v3 or the MCP server.
Steps to reproduce
- Make sure "Automatically create a new Draft Version of your Article when you edit a Published one" is enabled.
- Pick a published article that has no draft version.
- Send a new body through PUT /api/v3/articles/:id (or QuestionsUpdateQuestionTool).
- Open the article in the editor and check the version selector.
Expected result
A new draft version is created with the new content, and the published version stays unchanged, as it happens in the editor.
Actual result
The new content is written into the published version and goes live. No draft version is created. The previous content is no longer available in the revision history.
Workaround: clicking "New Version" in the editor before the API call makes the update land in the draft version.
Impact
Teams that write and review articles outside Helpjuice (for example, in Git) cannot safely upload content through the API or MCP. Every upload requires opening the article and creating a new version manually, otherwise content is published by mistake.
Suggestions
- Apply the "Automatically create a new Draft Version" setting to API v3 and MCP updates.
- Or add an endpoint/tool to create a new version, or a parameter to save the update as a draft in a new version.
- Return in the response which version was updated and whether it is a draft or published.