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

Fix get with post for creating new labels. #14

Merged
merged 1 commit into from
Feb 12, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion PythonConfluenceAPI/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,7 @@ def create_new_label_by_content_id(self, content_id, label_names, callback=None)
"""
assert isinstance(label_names, list)
assert all(isinstance(ln, dict) and set(ln.keys()) == {"prefix", "name"} for ln in label_names)
return self._service_get_request("rest/api/content/{id}/label".format(id=content_id),
return self._service_post_request("rest/api/content/{id}/label".format(id=content_id),
data=json.dumps(label_names), headers={"Content-Type": "application/json"},
callback=callback)

Expand Down