Skip to content

Commit 77c86f4

Browse files
authored
Confluence: add editor parameter to update_or_create (#680)
The create_page method exposes a way to create new pages with the v2 editor. This commit modifies the update_or_create method to expose this same functionality in case the page needs to be created and not updated.
1 parent 93a47b1 commit 77c86f4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

atlassian/confluence.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,6 +1453,7 @@ def update_or_create(
14531453
representation="storage",
14541454
minor_edit=False,
14551455
version_comment=None,
1456+
editor=None,
14561457
):
14571458
"""
14581459
Update page or create a page if it is not exists
@@ -1462,6 +1463,7 @@ def update_or_create(
14621463
:param representation: OPTIONAL: either Confluence 'storage' or 'wiki' markup format
14631464
:param minor_edit: Update page without notification
14641465
:param version_comment: Version comment
1466+
:param editor: OPTIONAL: v2 to be created in the new editor
14651467
:return:
14661468
"""
14671469
space = self.get_page_space(parent_id)
@@ -1485,6 +1487,7 @@ def update_or_create(
14851487
title=title,
14861488
body=body,
14871489
representation=representation,
1490+
editor=editor,
14881491
)
14891492

14901493
log.info(

0 commit comments

Comments
 (0)