Method: Morpheus::UserGroupsInterface#create

Defined in:
lib/morpheus/api/user_groups_interface.rb

#create(account_id, options) ⇒ Object



21
22
23
24
25
26
27
# File 'lib/morpheus/api/user_groups_interface.rb', line 21

def create(, options)
  url = build_url()
  headers = { :authorization => "Bearer #{@access_token}", 'Content-Type' => 'application/json' }
  payload = options
  opts = {method: :post, url: url, timeout: 10, headers: headers, payload: payload.to_json}
  execute(opts)
end