class BrickFTP::RESTfulAPI::UpdateBehavior

Update a behavior

@see developers.files.com/#update-a-behavior Update a behavior

### Params

PARAMETER | TYPE | DESCRIPTION ——— | —— | ———– value | array | Array of values associated with the behavior.

Constants

Params

Public Instance Methods

call(id, params) click to toggle source

Updates an existing behavior.

@param [Integer] id Globally unique identifier of each behavior. @param [BrickFTP::RESTfulAPI::UpdateBehavior::Params] params parameters @return [BrickFTP::Types::Behavior] Behavior

# File lib/brick_ftp/restful_api/update_behavior.rb, line 32
def call(id, params)
  res = client.patch("/api/rest/v1/behaviors/#{id}.json", params.to_h.compact)

  BrickFTP::Types::Behavior.new(**res.symbolize_keys)
end