freight_visibility/subscribe

Modify existing vehicle tracking instance.

Constraints

  • 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
  • asset must be active and not deactivated
  • asset must have an asset gateway assigned
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
Language
Credentials
Header
Click Try It! to start a request and see the response here!