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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user