Class: BrickFTP::RESTfulAPI::UpdateGroup
- Inherits:
-
Object
- Object
- BrickFTP::RESTfulAPI::UpdateGroup
- Includes:
- Command
- Defined in:
- lib/brick_ftp/restful_api/update_group.rb
Overview
Update a group
Params
PARAMETER | TYPE | DESCRIPTION |
---|---|---|
name | string | Name of the group. This is how the group will be displayed on the site. Maximum of 50 characters. |
notes | text | You may use this property to store any additional information you require. There are no restrictions on its formatting. |
user_ids | comma-separated integers | IDs of the users that are in this group. |
Defined Under Namespace
Classes: Params
Instance Method Summary collapse
-
#call(id, params) ⇒ BrickFTP::Types::Group
Updates the specified group.
Methods included from Command
Instance Method Details
#call(id, params) ⇒ BrickFTP::Types::Group
Updates the specified group.
37 38 39 40 41 |
# File 'lib/brick_ftp/restful_api/update_group.rb', line 37 def call(id, params) res = client.put("/api/rest/v1/groups/#{id}.json", params.to_h.compact) BrickFTP::Types::Group.new(**res.symbolize_keys) end |