Operations API
Leads
Assign to Teammate
this api endpoint ( post post ) assigns multiple leads to a teammate if the request succeeds, it will return the id of the teammate id and the ids of the updated leads permissions customer edit webhook event customer events docid\ vpxf3upxl n7gflcvvism body parameters teammate id string the id of the teammate to assign the customers to to unassign leads from a teammate, omit the this parameter leads array of strings an array of lead ids to be assigned to the teammate 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/assign to teammate") 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' ], teammate id '3b02d904 4fcb 41f8 8f4f bc75585a8486' } 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' ], teammate id "3b02d904 4fcb 41f8 8f4f bc75585a8486" }; var body = json stringify(data); var requestoptions = { method 'post', headers myheaders, body body }; fetch("https //api tamio com/v2/leads/bulk/assign to teammate", 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/assign to teammate' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here' \\ \ data raw '{"leads" \["c5f3b078 5520 4694 a4d1 d45885a6314e"],"teammate id" "3b02d904 4fcb 41f8 8f4f bc75585a8486"}'{ "status" 200, "teammate id" "3b02d904 4fcb 41f8 8f4f bc75585a8486", "leads" \["c5f3b078 5520 4694 a4d1 d45885a6314e"] }