Module: Nylas::GrantsApiOperations::Update

Includes:
ApiOperations::Put
Included in:
Calendars, Events, Webhooks
Defined in:
lib/nylas/handler/grants_api_operations.rb

Overview

Updates a Nylas object.

Instance Method Summary collapse

Instance Method Details

#update(identifier:, object_id:, query_params: {}, request_body: nil) ⇒ Array(Hash, String)

Updates a Nylas object.

Parameters:

  • identifier (String)

    Grant ID or email account in which to update an object.

  • object_id (String)

    Object ID.

  • query_params (Hash, {}) (defaults to: {})

    Query params to pass to the request.

  • request_body (Hash, nil) (defaults to: nil)

    Request body to pass to the request.

Returns:

  • (Array(Hash, String))

    Updated Nylas object and API Request ID.



71
72
73
74
75
76
77
# File 'lib/nylas/handler/grants_api_operations.rb', line 71

def update(identifier:, object_id:, query_params: {}, request_body: nil)
  put(
    path: "#{api_uri}/v3/grants/#{identifier}/#{resource_name}/#{object_id}",
    query_params: query_params,
    request_body: request_body
  )
end