/messages

Update status of messages received by the system user.

require 'uri'
require 'net/http'
require 'json'

url = URI('https://api.keeptruckin.com/v1/messages')

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Put.new(url)
request['Authorization'] = "Bearer <OAUTH_TOKEN>"
request['X-User-Id']     = <api user id>
request['Content-Type']  = 'application/json'
params = {
  :ids 		=> ['layer:///messages/06adc4a7-80c1-4026-9328-2d123d0f31c8'],
  :status => 'delivered',
}
request.body = params.to_json

response = http.request(request)
puts response.read_body
Language
Authorization
Header
Click Try It! to start a request and see the response here!