Skip to content

Commit f5f0882

Browse files
authored
Added ?status=current to update call. (#1051)
1 parent c0073d5 commit f5f0882

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

atlassian/confluence.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ def update_page(
15431543
data["metadata"]["properties"]["content-appearance-draft"] = {"value": "full-width"}
15441544
data["metadata"]["properties"]["content-appearance-published"] = {"value": "full-width"}
15451545
try:
1546-
response = self.put("rest/api/content/{0}".format(page_id), data=data)
1546+
response = self.put("rest/api/content/{0}?status=current".format(page_id), data=data)
15471547
except HTTPError as e:
15481548
if e.response.status_code == 400:
15491549
raise ApiValueError(

0 commit comments

Comments
 (0)