Drop n8n createDraftVersion, add body to update

Remove the createDraftVersion document operation from the n8n node and
instead expose the document body on the update operation. Updating the
body edits the current draft version, or creates one from the latest
published version when none exists, so a dedicated draft-creation
operation is redundant.

Also correct the content field help text across the document
operations: the API expects a ProseMirror document JSON string, not
markdown.

Signed-off-by: Sacha Al Himdani <sacha@probo.com>
This commit is contained in:
Sacha Al Himdani
2026-07-03 14:00:48 +02:00
parent 73023fc2b8
commit 2955820ac6
5 changed files with 28 additions and 81 deletions

View File

@@ -103,7 +103,7 @@ export const description: INodeProperties[] = [
},
},
default: '',
description: 'The content of the document in markdown format',
description: 'The content of the document as a ProseMirror document JSON string',
},
{
displayName: 'Additional Fields',