cURL Python JavaScript Java
bash curl --request POST \
--url ' https://api2.rhombussystems.com/api/integrations/accessControl/updateButterflymxIntegrationV2 ' \
--header ' x-auth-scheme: api-token ' \
--header ' x-auth-apikey: YOUR_API_KEY ' \
--header ' Content-Type: application/json ' \
--data ' {
"butterflymxSettings": {
"alertUnauthorizedFaces": true,
"apiToken": "<string>",
"badgeAuthDisablesAlarmMonitoring": true,
"badgeFaceVerificationMode": "OFF",
"buildingWebhookIdMap": {
"<key>": "<string>"
},
"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,
"identifyFacesFromBadge": true,
"indexFaces": true,
"integration": "AVIGILON_ALTA",
"integrationAuditMap": {
"<key>": {
"enabledTimestampMs": 0,
"integrationAuditEvent": "UPDATE",
"user": "<string>",
"userUuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
},
"misconfiguredDoors": [
"<string>"
],
"orgUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"panelInfoMap": {
"<key>": {
"assignedCameraList": [
"AAAAAAAAAAAAAAAAAAAAAA"
],
"buildingId": 0,
"locationUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"panelName": "<string>",
"subLocationsHierarchyKey": "AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA"
}
},
"refreshToken": "<string>",
"rhombusToken": "AAAAAAAAAAAAAAAAAAAAAA",
"saveClips": true,
"tokenValid": true,
"userUuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
} ' import requests
url = " https://api2.rhombussystems.com/api/integrations/accessControl/updateButterflymxIntegrationV2 "
headers = {
" x-auth-scheme ": " api-token ",
" x-auth-apikey ": " YOUR_API_KEY ",
" Content-Type ": " application/json ",
}
payload = {
" butterflymxSettings ": {
" alertUnauthorizedFaces ": True ,
" apiToken ": " <string> ",
" badgeAuthDisablesAlarmMonitoring ": True ,
" badgeFaceVerificationMode ": " OFF ",
" buildingWebhookIdMap ": {
" <key> ": " <string> "
},
" 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 ,
" identifyFacesFromBadge ": True ,
" indexFaces ": True ,
" integration ": " AVIGILON_ALTA ",
" integrationAuditMap ": {
" <key> ": {
" enabledTimestampMs ": 0 ,
" integrationAuditEvent ": " UPDATE ",
" user ": " <string> ",
" userUuid ": " AAAAAAAAAAAAAAAAAAAAAA "
}
},
" misconfiguredDoors ": [
" <string> "
],
" orgUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" panelInfoMap ": {
" <key> ": {
" assignedCameraList ": [
" AAAAAAAAAAAAAAAAAAAAAA "
],
" buildingId ": 0 ,
" locationUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" panelName ": " <string> ",
" subLocationsHierarchyKey ": " AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA "
}
},
" refreshToken ": " <string> ",
" rhombusToken ": " AAAAAAAAAAAAAAAAAAAAAA ",
" 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/accessControl/updateButterflymxIntegrationV2 ', {
method : ' POST ',
headers : {
' x-auth-scheme ': ' api-token ',
' x-auth-apikey ': ' YOUR_API_KEY ',
' Content-Type ': ' application/json ',
},
body : JSON. stringify ({
" butterflymxSettings ": {
" alertUnauthorizedFaces ": true ,
" apiToken ": " <string> ",
" badgeAuthDisablesAlarmMonitoring ": true ,
" badgeFaceVerificationMode ": " OFF ",
" buildingWebhookIdMap ": {
" <key> ": " <string> "
},
" 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 ,
" identifyFacesFromBadge ": true ,
" indexFaces ": true ,
" integration ": " AVIGILON_ALTA ",
" integrationAuditMap ": {
" <key> ": {
" enabledTimestampMs ": 0 ,
" integrationAuditEvent ": " UPDATE ",
" user ": " <string> ",
" userUuid ": " AAAAAAAAAAAAAAAAAAAAAA "
}
},
" misconfiguredDoors ": [
" <string> "
],
" orgUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" panelInfoMap ": {
" <key> ": {
" assignedCameraList ": [
" AAAAAAAAAAAAAAAAAAAAAA "
],
" buildingId ": 0 ,
" locationUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" panelName ": " <string> ",
" subLocationsHierarchyKey ": " AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA "
}
},
" refreshToken ": " <string> ",
" rhombusToken ": " AAAAAAAAAAAAAAAAAAAAAA ",
" 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 = """
{
"butterflymxSettings": {
"alertUnauthorizedFaces": true,
"apiToken": "<string>",
"badgeAuthDisablesAlarmMonitoring": true,
"badgeFaceVerificationMode": "OFF",
"buildingWebhookIdMap": {
"<key>": "<string>"
},
"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,
"identifyFacesFromBadge": true,
"indexFaces": true,
"integration": "AVIGILON_ALTA",
"integrationAuditMap": {
"<key>": {
"enabledTimestampMs": 0,
"integrationAuditEvent": "UPDATE",
"user": "<string>",
"userUuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
},
"misconfiguredDoors": [
"<string>"
],
"orgUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"panelInfoMap": {
"<key>": {
"assignedCameraList": [
"AAAAAAAAAAAAAAAAAAAAAA"
],
"buildingId": 0,
"locationUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"panelName": "<string>",
"subLocationsHierarchyKey": "AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA"
}
},
"refreshToken": "<string>",
"rhombusToken": "AAAAAAAAAAAAAAAAAAAAAA",
"saveClips": true,
"tokenValid": true,
"userUuid": "AAAAAAAAAAAAAAAAAAAAAA"
}
}
""";
HttpRequest request = HttpRequest. newBuilder ()
. uri ( URI. create (" https://api2.rhombussystems.com/api/integrations/accessControl/updateButterflymxIntegrationV2 "))
. 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 ());
}
}