diff --git a/atlassian/assets.py b/atlassian/assets.py index 46aea298b..506fb8160 100644 --- a/atlassian/assets.py +++ b/atlassian/assets.py @@ -174,7 +174,7 @@ def add_comment_to_object(self, comment, object_id, role): raise NotImplementedError params = {"comment": comment, "objectId": object_id, "role": role} url = "rest/assets/1.0/comment/create" - return self.post(url, params=params) + return self.post(url, data=params) def get_comment_of_object(self, object_id): """ diff --git a/atlassian/insight.py b/atlassian/insight.py index 23946ad9f..32724d30c 100644 --- a/atlassian/insight.py +++ b/atlassian/insight.py @@ -173,7 +173,7 @@ def add_comment_to_object(self, comment, object_id, role): raise NotImplementedError params = {"comment": comment, "objectId": object_id, "role": role} url = "rest/insight/1.0/comment/create" - return self.post(url, params=params) + return self.post(url, data=params) def get_comment_of_object(self, object_id): """