Marketing API
Assets
Bulk Move
note folders cannot be moved with this endpoint body parameters assets array of strings an array of strings each representing an asset id that you wish to remove the maximum number of assets that can be moved in a single request is 500 folder id string the id of the folder that you like the asset to be moved in require "uri" require "json" require "net/http" url = uri("https //api tamio com/v2/assets/bulk/move") 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 = { assets \[ "cbadfed2 4464 452c a146 6f064c863953" ], folder id "0be87b96 2439 4ed9 8fe9 565301dc1d96" } request body = data to json response = https request(request) puts response read bodycurl location request post 'https //api tamio com/v2/assets/bulk/move' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here' \\ \ data raw '{ "assets" \[ "cbadfed2 4464 452c a146 6f064c863953" ], "folder id" "0be87b96 2439 4ed9 8fe9 565301dc1d96" }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var data = { assets \[ "cbadfed2 4464 452c a146 6f064c863953" ], folder id "0be87b96 2439 4ed9 8fe9 565301dc1d96" }; var body = json stringify(data); var requestoptions = { method 'post', headers myheaders, body body }; fetch("https //api tamio com/v2/assets/bulk/move", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "status" 200, "assets" \[ "cbadfed2 4464 452c a146 6f064c863953" ] }