WhiteLabel API
Clients
Bulk Delete
this api endpoint (post) (post) removes multiple clients with a single request if the request succeeds, it will return the ids of the clients that were removed permissions clients remove webhook event client events (whitelabel) docid\ v hdafu6clw5cmpxckyss body parameters clients array of strings an array of strings each representing a client id that you wish to remove the maximum number of clients that can be removed in a single request is 50 require "uri" require "json" require "net/http" url = uri("https //api tamio com/v2/clients/bulk/delete") 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 = { clients \[ 'cbadfed2 4464 452c a146 6f064c863953' ] } request body = data to json response = https request(request) puts response read bodycurl location request post 'https //api tamio com/v2/clients/bulk/delete' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here' \\ \ data raw '{ "clients" \[ "cbadfed2 4464 452c a146 6f064c863953" ] }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("authorization", "bearer your token here"); var data = { clients \[ 'cbadfed2 4464 452c a146 6f064c863953' ] }; var body = json stringify(data); var requestoptions = { method 'post', headers myheaders, body body }; fetch("https //api tamio com/v2/clients/bulk/delete", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));{ "status" 200, "clients" \[ "cbadfed2 4464 452c a146 6f064c863953" ] }