Archives multiple product lines in a single request.
1 min
code examples curl request post \\ \ url https //api upstartcommerce com/pim/product lines/batch/archive \\ \ header 'accept application/json'var myheaders = new headers(); myheaders append("accept", "application/json"); var requestoptions = { method 'post', headers myheaders, redirect 'follow' }; fetch("https //api upstartcommerce com/pim/product lines/batch/archive", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "net/http" url = uri("https //api upstartcommerce com/pim/product lines/batch/archive") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" response = https request(request) puts response read body import requests url = "https //api upstartcommerce com/pim/product lines/batch/archive" payload = {} headers = { 'accept' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // all product lines archived successfully {}// some product lines archived successfully, others failed {}