From b6dfe973df9b50f6bd0785ad06ef57b466ba377b Mon Sep 17 00:00:00 2001 From: Blag Date: Sat, 13 Jan 2024 22:32:52 -0500 Subject: [PATCH] Update connectors.rb Added the Patch operation and changed PUT with PATCH on the update method --- lib/nylas/resources/connectors.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/nylas/resources/connectors.rb b/lib/nylas/resources/connectors.rb index 1e738240..5bb1d2e1 100644 --- a/lib/nylas/resources/connectors.rb +++ b/lib/nylas/resources/connectors.rb @@ -10,6 +10,7 @@ class Connectors < Resource include ApiOperations::Post include ApiOperations::Put include ApiOperations::Delete + include ApiOperations::Patch # Access the Credentials API attr_reader :credentials @@ -59,7 +60,7 @@ def create(request_body:) # @param request_body [Hash] The values to update the connector with # @return [Array(Hash, String)] The updated connector and API Request ID. def update(provider:, request_body:) - put( + patch( path: "#{api_uri}/v3/connectors/#{provider}", request_body: request_body )