put https://api.keeptruckin.com/v1/groups/
Update an existing group
require 'uri'
require 'net/http'
require 'json'
url = URI('https://api.keeptruckin.com/v1/groups/3')
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request['Authorization'] = "Bearer <OAUTH_TOKEN>"
request['Content-Type'] = 'application/json'
params = {
:name => 'East Cost1'
}
request.body = params.to_json
response = http.request(request)
puts response.read_body