Delete Remote Operation
curl --request DELETE \
--url https://stage-api.getswitch.io/integrations/remote-operations/{operation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://stage-api.getswitch.io/integrations/remote-operations/{operation_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://stage-api.getswitch.io/integrations/remote-operations/{operation_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://stage-api.getswitch.io/integrations/remote-operations/{operation_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true
}Integrations
Delete Remote Operation
Delete a remote operation on your fleet platform. This cannot be undone. success is false when the platform refused it or does not support it.
Integrations talk to the fleet platform your company is linked to (for example Wunder, ATOM or an MDS feed) and return its data in one common format, whatever the platform. They need a fleet integration configured for your company; GET /integrations/availability shows which kinds of data and operations your platform supports.
Failure Modes:
- 401: Token is missing or invalid
- 403:
access_deniedwhen your role or API key lacks the permission below - 404:
no_data_binding(kind: fleet) when no fleet integration is configured for your company - 422: Invalid parameters, or your fleet platform does not support this (
Unknown provider: ...) - 502: The fleet platform returned an error (
Upstream provider error: ...)
Required Auth Scopes:
integrations:remote-ops:manage
DELETE
/
integrations
/
remote-operations
/
{operation_id}
Delete Remote Operation
curl --request DELETE \
--url https://stage-api.getswitch.io/integrations/remote-operations/{operation_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://stage-api.getswitch.io/integrations/remote-operations/{operation_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://stage-api.getswitch.io/integrations/remote-operations/{operation_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://stage-api.getswitch.io/integrations/remote-operations/{operation_id}"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true
}Authorizations
HTTPBearerHTTPBearer
Path Parameters
Query Parameters
Response
Request sent to the fleet platform. success says if it applied.
