From 94c710eddfe5f22e064de1b35d7d590319ac16ee Mon Sep 17 00:00:00 2001 From: Fadone Date: Sun, 20 Nov 2022 06:32:14 +0500 Subject: [PATCH] Changed comments.update() API call from post to put --- frameioclient/services/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameioclient/services/comments.py b/frameioclient/services/comments.py index 5d797183..e4d5c7fd 100644 --- a/frameioclient/services/comments.py +++ b/frameioclient/services/comments.py @@ -91,7 +91,7 @@ def update( kwargs = {"text": text, "annotation": annotation, "timestamp": timestamp} endpoint = "/comments/{}".format(comment_id) - return self.client._api_call("post", endpoint, payload=kwargs) + return self.client._api_call("put", endpoint, payload=kwargs) @ApiReference(operation="#deleteComment") def delete(self, comment_id: Union[str, UUID]):