lib/nylas/resources/grants.rb in nylas-6.0.1 vs lib/nylas/resources/grants.rb in nylas-6.0.2

- old
+ new

@@ -7,10 +7,11 @@ # Grants class Grants < Resource include ApiOperations::Get include ApiOperations::Put include ApiOperations::Delete + include ApiOperations::Patch # Return all grants. # # @param query_params [Hash, nil] Query params to pass to the request. # @return [Array(Array(Hash), String)] The list of grants and API Request ID. @@ -35,10 +36,10 @@ # # @param grant_id [String] The id of the grant to update. # @param request_body [Hash] The values to update the grant with # @return [Array(Hash, String)] The updated grant and API Request ID. def update(grant_id:, request_body:) - put( + patch( path: "#{api_uri}/v3/grants/#{grant_id}", request_body: request_body ) end