Complete Remote Operation
curl --request POST \
--url https://stage-api.getswitch.io/integrations/remote-operations/{operation_id}/complete \
--header 'Authorization: Bearer <token>'import requests
url = "https://stage-api.getswitch.io/integrations/remote-operations/{operation_id}/complete"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://stage-api.getswitch.io/integrations/remote-operations/{operation_id}/complete', 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}/complete"
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
Complete Remote Operation
Mark a remote operation as completed on your fleet platform. 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}
/
complete
Complete Remote Operation
curl --request POST \
--url https://stage-api.getswitch.io/integrations/remote-operations/{operation_id}/complete \
--header 'Authorization: Bearer <token>'import requests
url = "https://stage-api.getswitch.io/integrations/remote-operations/{operation_id}/complete"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://stage-api.getswitch.io/integrations/remote-operations/{operation_id}/complete', 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}/complete"
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.
