cURL Python JavaScript Java
bash curl --request POST \
--url ' https://api2.rhombussystems.com/api/integrations/serviceManagement/updateEnvoyIntegrationV2 ' \
--header ' x-auth-scheme: api-token ' \
--header ' x-auth-apikey: YOUR_API_KEY ' \
--header ' Content-Type: application/json ' \
--data ' {
"envoySettings": {
"alertUnauthorizedFaces": true,
"apiToken": "<string>",
"badgeAuthDisablesAlarmMonitoring": true,
"badgeFaceVerificationMode": "OFF",
"createAccessAnomalyAlerts": true,
"createSeekPoints": true,
"doorInfoMap": {
"<key>": {
"assignedCameraList": [
"AAAAAAAAAAAAAAAAAAAAAA"
],
"clipDuration": 0,
"doorName": "<string>",
"leadingSeconds": 0,
"locationUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"remoteUnlock": true,
"subLocationsHierarchyKey": "AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA"
}
},
"doorsValidated": true,
"enabled": true,
"envoyIntegrationInstalled": true,
"envoyUserSettingsMap": {
"<key>": {
"guestsEnabled": true,
"packagesEnabled": true
}
},
"identifyFacesFromBadge": true,
"indexFaces": true,
"integration": "AVIGILON_ALTA",
"integrationAuditMap": {
"<key>": {
"enabledTimestampMs": 0,
"integrationAuditEvent": "UPDATE",
"user": "<string>",
"userUuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
},
"locationInfoMap": {
"<key>": {
"assignedCameraList": [
"AAAAAAAAAAAAAAAAAAAAAA"
],
"locationName": "<string>"
}
},
"misconfiguredDoors": [
"<string>"
],
"orgUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"refreshToken": "<string>",
"saveClips": true,
"tokenValid": true,
"userUuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
} ' import requests
url = " https://api2.rhombussystems.com/api/integrations/serviceManagement/updateEnvoyIntegrationV2 "
headers = {
" x-auth-scheme ": " api-token ",
" x-auth-apikey ": " YOUR_API_KEY ",
" Content-Type ": " application/json ",
}
payload = {
" envoySettings ": {
" alertUnauthorizedFaces ": True ,
" apiToken ": " <string> ",
" badgeAuthDisablesAlarmMonitoring ": True ,
" badgeFaceVerificationMode ": " OFF ",
" createAccessAnomalyAlerts ": True ,
" createSeekPoints ": True ,
" doorInfoMap ": {
" <key> ": {
" assignedCameraList ": [
" AAAAAAAAAAAAAAAAAAAAAA "
],
" clipDuration ": 0 ,
" doorName ": " <string> ",
" leadingSeconds ": 0 ,
" locationUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" remoteUnlock ": True ,
" subLocationsHierarchyKey ": " AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA "
}
},
" doorsValidated ": True ,
" enabled ": True ,
" envoyIntegrationInstalled ": True ,
" envoyUserSettingsMap ": {
" <key> ": {
" guestsEnabled ": True ,
" packagesEnabled ": True
}
},
" identifyFacesFromBadge ": True ,
" indexFaces ": True ,
" integration ": " AVIGILON_ALTA ",
" integrationAuditMap ": {
" <key> ": {
" enabledTimestampMs ": 0 ,
" integrationAuditEvent ": " UPDATE ",
" user ": " <string> ",
" userUuid ": " AAAAAAAAAAAAAAAAAAAAAA "
}
},
" locationInfoMap ": {
" <key> ": {
" assignedCameraList ": [
" AAAAAAAAAAAAAAAAAAAAAA "
],
" locationName ": " <string> "
}
},
" misconfiguredDoors ": [
" <string> "
],
" orgUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" refreshToken ": " <string> ",
" saveClips ": True ,
" tokenValid ": True ,
" userUuid ": " AAAAAAAAAAAAAAAAAAAAAA "
}
}
response = requests. post ( url , headers= headers , json= payload )
response. raise_for_status ()
print ( response . json ()) const response = await fetch (' https://api2.rhombussystems.com/api/integrations/serviceManagement/updateEnvoyIntegrationV2 ', {
method : ' POST ',
headers : {
' x-auth-scheme ': ' api-token ',
' x-auth-apikey ': ' YOUR_API_KEY ',
' Content-Type ': ' application/json ',
},
body : JSON. stringify ({
" envoySettings ": {
" alertUnauthorizedFaces ": true ,
" apiToken ": " <string> ",
" badgeAuthDisablesAlarmMonitoring ": true ,
" badgeFaceVerificationMode ": " OFF ",
" createAccessAnomalyAlerts ": true ,
" createSeekPoints ": true ,
" doorInfoMap ": {
" <key> ": {
" assignedCameraList ": [
" AAAAAAAAAAAAAAAAAAAAAA "
],
" clipDuration ": 0 ,
" doorName ": " <string> ",
" leadingSeconds ": 0 ,
" locationUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" remoteUnlock ": true ,
" subLocationsHierarchyKey ": " AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA "
}
},
" doorsValidated ": true ,
" enabled ": true ,
" envoyIntegrationInstalled ": true ,
" envoyUserSettingsMap ": {
" <key> ": {
" guestsEnabled ": true ,
" packagesEnabled ": true
}
},
" identifyFacesFromBadge ": true ,
" indexFaces ": true ,
" integration ": " AVIGILON_ALTA ",
" integrationAuditMap ": {
" <key> ": {
" enabledTimestampMs ": 0 ,
" integrationAuditEvent ": " UPDATE ",
" user ": " <string> ",
" userUuid ": " AAAAAAAAAAAAAAAAAAAAAA "
}
},
" locationInfoMap ": {
" <key> ": {
" assignedCameraList ": [
" AAAAAAAAAAAAAAAAAAAAAA "
],
" locationName ": " <string> "
}
},
" misconfiguredDoors ": [
" <string> "
],
" orgUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" refreshToken ": " <string> ",
" saveClips ": true ,
" tokenValid ": true ,
" userUuid ": " AAAAAAAAAAAAAAAAAAAAAA "
}
}),
});
if (! response. ok ) throw new Error (`${ response. status } : ${ await response. text ()}`);
console. log ( await response. json ()); import java . net . URI ;
import java . net . http . HttpClient ;
import java . net . http . HttpRequest ;
import java . net . http . HttpResponse ;
public class Example {
public static void main ( String [] args) throws Exception {
String body = """
{
"envoySettings": {
"alertUnauthorizedFaces": true,
"apiToken": "<string>",
"badgeAuthDisablesAlarmMonitoring": true,
"badgeFaceVerificationMode": "OFF",
"createAccessAnomalyAlerts": true,
"createSeekPoints": true,
"doorInfoMap": {
"<key>": {
"assignedCameraList": [
"AAAAAAAAAAAAAAAAAAAAAA"
],
"clipDuration": 0,
"doorName": "<string>",
"leadingSeconds": 0,
"locationUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"remoteUnlock": true,
"subLocationsHierarchyKey": "AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA"
}
},
"doorsValidated": true,
"enabled": true,
"envoyIntegrationInstalled": true,
"envoyUserSettingsMap": {
"<key>": {
"guestsEnabled": true,
"packagesEnabled": true
}
},
"identifyFacesFromBadge": true,
"indexFaces": true,
"integration": "AVIGILON_ALTA",
"integrationAuditMap": {
"<key>": {
"enabledTimestampMs": 0,
"integrationAuditEvent": "UPDATE",
"user": "<string>",
"userUuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
},
"locationInfoMap": {
"<key>": {
"assignedCameraList": [
"AAAAAAAAAAAAAAAAAAAAAA"
],
"locationName": "<string>"
}
},
"misconfiguredDoors": [
"<string>"
],
"orgUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"refreshToken": "<string>",
"saveClips": true,
"tokenValid": true,
"userUuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
}
""";
HttpRequest request = HttpRequest. newBuilder ()
. uri ( URI. create (" https://api2.rhombussystems.com/api/integrations/serviceManagement/updateEnvoyIntegrationV2 "))
. header (" x-auth-scheme ", " api-token ")
. header (" x-auth-apikey ", " YOUR_API_KEY ")
. header (" Content-Type ", " application/json ")
. method (" POST ", HttpRequest. BodyPublishers. ofString ( body))
. build ();
HttpResponse < String > response = HttpClient. newHttpClient ()
. send ( request, HttpResponse. BodyHandlers. ofString ());
System. out. println ( response. statusCode () + " " + response. body ());
}
}