class BrickFTP::RESTfulAPI::CreateBundle

Create a bundle

@see developers.files.com/#create-a-bundle Create a bundle

### Params

PARAMETER | TYPE | DESCRIPTION ——— | —— | ———– paths | array | List of the paths associated with the bundle. password | string | Optional password to password-protect the bundle. This property is write-only. It cannot be retrieved via the API.

Constants

Params

Public Instance Methods

call(params) click to toggle source

Creates a new group on the current site.

@param [BrickFTP::RESTfulAPI::CreateBundle::Params] params parameters @return [BrickFTP::Types::Bundle] Bundle

# File lib/brick_ftp/restful_api/create_bundle.rb, line 33
def call(params)
  res = client.post('/api/rest/v1/bundles.json', params.to_h.compact)

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