Inventory API
Products
Power Editor
this api endpoint (post) (post) updates multiple products with just a single request if the request succeeds it will return the ids of the products that were updated permissions products edit webhook events product events docid\ bfktivl3xva6ucdtrt5bz , product events docid\ bfktivl3xva6ucdtrt5bz and product events docid\ bfktivl3xva6ucdtrt5bz body parameters type string the type of products being editted the possible values are physical products , digital products , billing plans and services body parameters products array of objects an array of objects each representing a product that you wish to update the maximum products that can be updated in a single request is 300 the attributes of each object in the array are the same as the create endpoint of the type of product you are editing for example, if you are updating a service product, the body parameters are the same as the create service docid\ faumlsn6bxctxch9oqlp3 api endpoint the only caveat is to add the product id for each object products \[ { id "cbadfed2 4464 452c a146 6f064c863953" // other attributes from the create endpoint } ] note this endpoint is experimental require "uri" require "json" require "net/http" url = uri("https //api tamio com/v2/power editor/physical products") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["authorization"] = "bearer your token here" data = { products \[ { id "cbadfed2 4464 452c a146 6f064c863953", languages { en { title "new product title" } } } ] } request body = data to json response = https request(request) puts response read bodycurl location request post 'https //api tamio com/v2/products/power editor/physical products' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here' \\ \ data raw '{ "products" \[ { "id" "cbadfed2 4464 452c a146 6f064c863953" "languages" { "en" { "title" "new product title" } } } ] }' var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var data = { products \[ { id "cbadfed2 4464 452c a146 6f064c863953", languages { en { title "new product title" } } } ] }; var body = json stringify(data); var requestoptions = { method 'post', headers myheaders, body body }; fetch("https //api tamio com/v2/products/power editor/physical products", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "status" 200, "products" \[ "cbadfed2 4464 452c a146 6f064c863953" ] }