Modify existing vehicle tracking instance.
- start_time and end_time must specify time window between 1 hour and 5 days
- start_time must be less than 2 weeks from today
- new start_time can only be earlier
- new end_time can only be later
- overlapping tracking instances are not allowed
require 'uri' require 'net/http' url = URI('https://api.keeptruckin.com/v1/freight_visibility/subscribe') http = Net::HTTP.new(url.host, url.port) http.use_ssl = true request = Net::HTTP::Put.new(url) request['Authorization'] = "Bearer <OAUTH_TOKEN>" response = http.request(request) puts response.read_body