Skip to content
This repository was archived by the owner on Dec 27, 2018. It is now read-only.

Commit 62c95b8

Browse files
committed
Merge pull request #14 from grundic/master
Fix `get` with `post` for creating new labels.
2 parents cb2ddb0 + 333fd9c commit 62c95b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PythonConfluenceAPI/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ def create_new_label_by_content_id(self, content_id, label_names, callback=None)
826826
"""
827827
assert isinstance(label_names, list)
828828
assert all(isinstance(ln, dict) and set(ln.keys()) == {"prefix", "name"} for ln in label_names)
829-
return self._service_get_request("rest/api/content/{id}/label".format(id=content_id),
829+
return self._service_post_request("rest/api/content/{id}/label".format(id=content_id),
830830
data=json.dumps(label_names), headers={"Content-Type": "application/json"},
831831
callback=callback)
832832

0 commit comments

Comments
 (0)