PUT /widgets/[api_key] - Update a Brand

PUT /widgets/[api_key] - Update a Brand

Last update: % A,% b% d,% Y.
https://xenoapp.com/rest/v2/widgets/[api_key]


Headers

Authorization: Bearer TOKEN

Content-Type: application/json

Body:

{
  "name": "An updated widget"
}


Example Request

require "uri"
require "net/http"

url = URI("https://xenoapp.com/rest/v2/widgets")

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

request = Net::HTTP::Put.new(url)
request["Authorization"] = "Bearer TOKEN"
request["Content-Type"] = "application/json"
request.body = '{"name": "An updated widget"}'

response = https.request(request)
puts response.read_body


REST API - Brands

5 article in this category.