Operations API
Subscriptions
Bulk Delete Subscriptions
this endpoint ( post post ) permanently removes one or multiple subscriptions if the request succeeds, it will return the ids of the subscriptions that were removed permissions subscriptions remove note bulk delete does not cancel any active subscriptions body parameters subscriptions array of strings an array of subscription ids to deleted require "uri" require "json" require "net/http" url = uri("https //api tamio com/v2/subscriptions/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 = { subscriptions \[ 'c5f3b078 5520 4694 a4d1 d45885a6314e' ] } 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 = { subscriptions \[ 'c5f3b078 5520 4694 a4d1 d45885a6314e' ] }; var body = json stringify(data); var requestoptions = { method 'post', headers myheaders, body body }; fetch("https //api tamio com/v2/subscriptions/bulk/delete", 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/subscriptions/bulk/delete' \\ \ header 'accept application/json' \\ \ header 'authorization bearer your token here' \\ \ data raw '{"subscriptions" \["c5f3b078 5520 4694 a4d1 d45885a6314e"]}'{ "status" 200, "subscriptions" \[ "c5f3b078 5520 4694 a4d1 d45885a6314e" ] }