diff --git a/CHANGELOG.md b/CHANGELOG.md index e50fc31..33f1e2c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ nylas-python Changelog Unreleased ---------- * Added Yahoo, Zoom, EWS as providers to models/auth.py +* Fixed grants.update() not using the correct "PATCH" method v6.11.1 ---------- diff --git a/nylas/resources/grants.py b/nylas/resources/grants.py index 5f6e026..06a951b 100644 --- a/nylas/resources/grants.py +++ b/nylas/resources/grants.py @@ -92,6 +92,7 @@ def update( response_type=Grant, request_body=request_body, overrides=overrides, + method="PATCH" ) def destroy( diff --git a/tests/resources/test_grants.py b/tests/resources/test_grants.py index 9dfcef9..e7d61d3 100644 --- a/tests/resources/test_grants.py +++ b/tests/resources/test_grants.py @@ -67,7 +67,7 @@ def test_update_grant(self, http_client_response): ) http_client_response._execute.assert_called_once_with( - "PUT", "/v3/grants/grant-123", None, None, request_body, overrides=None + "PATCH", "/v3/grants/grant-123", None, None, request_body, overrides=None ) def test_destroy_grant(self, http_client_delete_response):