From 0ce60a5907bdd448cf36f67f208cfcef93a114d8 Mon Sep 17 00:00:00 2001 From: James Potter Date: Mon, 7 Jul 2025 21:39:01 +0800 Subject: [PATCH] Fix grants.update() to use PATCH not PUT The API only allows PATCH, so an error is always thrown. --- nylas/resources/grants.py | 1 + 1 file changed, 1 insertion(+) diff --git a/nylas/resources/grants.py b/nylas/resources/grants.py index 5f6e0266..8d6ab4c7 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(