File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -793,6 +793,7 @@ def create_page(
793
793
representation = "storage" ,
794
794
editor = None ,
795
795
full_width = False ,
796
+ status = "current" ,
796
797
):
797
798
"""
798
799
Create page from scratch
@@ -804,13 +805,15 @@ def create_page(
804
805
:param representation: OPTIONAL: either Confluence 'storage' or 'wiki' markup format
805
806
:param editor: OPTIONAL: v2 to be created in the new editor
806
807
:param full_width: DEFAULT: False
808
+ :param status: either 'current' or 'draft'
807
809
:return:
808
810
"""
809
811
log .info ('Creating %s "%s" -> "%s"' , type , space , title )
810
812
url = "rest/api/content/"
811
813
data = {
812
814
"type" : type ,
813
815
"title" : title ,
816
+ "status" : status ,
814
817
"space" : {"key" : space },
815
818
"body" : self ._create_body (body , representation ),
816
819
"metadata" : {"properties" : {}},
You can’t perform that action at this time.
0 commit comments