Reopen Remote Operation
curl --request POST \
--url https://api.getswitch.io/integrations/remote-operations/{operation_id}/undo \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getswitch.io/integrations/remote-operations/{operation_id}/undo"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getswitch.io/integrations/remote-operations/{operation_id}/undo', 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://api.getswitch.io/integrations/remote-operations/{operation_id}/undo"
req, _ := http.NewRequest("POST", 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
Reopen Remote Operation
Undo the completion of a remote operation: the fleet platform puts it back in progress. 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
POST
/
integrations
/
remote-operations
/
{operation_id}
/
undo
Reopen Remote Operation
curl --request POST \
--url https://api.getswitch.io/integrations/remote-operations/{operation_id}/undo \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.getswitch.io/integrations/remote-operations/{operation_id}/undo"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getswitch.io/integrations/remote-operations/{operation_id}/undo', 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://api.getswitch.io/integrations/remote-operations/{operation_id}/undo"
req, _ := http.NewRequest("POST", 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.
