Operations API
Leads
Update Priority
this endpoint ( post post ) updates the priority of one or multiple leads if the request succeeds, it returns the priority and the ids of the updated leads permissions customers edit webhook event customer events docid\ vpxf3upxl n7gflcvvism body parameters priority string the possible values are low , normal , medium and high leads array of strings an array of lead ids to be updated the maximum number of leads that you can request is 50 require "uri" require "json" require "net/http" url = uri("https //api tamio com/v2/leads/bulk/change priority") 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 = { leads \[ 'c5f3b078 5520 4694 a4d1 d45885a6314e' ], priority "high" } request body = data to json response = https request(request) puts response read bodyvar myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var data = { leads \[ 'c5f3b078 5520 4694 a4d1 d45885a6314e' ], priority "high" }; var body = json stringify(data); var requestoptions = { method 'post', headers myheaders, body body }; fetch("https //api tamio com/v2/leads/bulk/change priority", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));curl location request post 'https //api tamio com/v2/leads/bulk/change priority' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here' \\ \ data raw '{"leads" \["c5f3b078 5520 4694 a4d1 d45885a6314e"],"priority" "high"}'{ "status" 200, "priority" "high", "leads" \["c5f3b078 5520 4694 a4d1 d45885a6314e"] }