cURL Python JavaScript Java
bash curl --request POST \
--url ' https://api2.rhombussystems.com/api/integrations/accessControl/updateKisiIntegration ' \
--header ' x-auth-scheme: api-token ' \
--header ' x-auth-apikey: YOUR_API_KEY ' \
--header ' Content-Type: application/json ' \
--data ' {
"kisiSettings": {
"alertUnauthorizedFaces": true,
"apiSecretKey": "<string>",
"createSeekPoints": true,
"defaultOptions": {
"alertUnauthorizedFaces": true,
"badgeAuthDisablesAlarmMonitoring": true,
"createSeekPoints": true,
"defaultOptionsEnabled": true,
"identifyFacesFromBadge": true,
"saveClips": true
},
"doorInfoMap": {
"<key>": {
"assignedCameraList": [
"AAAAAAAAAAAAAAAAAAAAAA"
],
"clipDuration": 0,
"doorName": "<string>",
"leadingSeconds": 0,
"locationUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"remoteUnlock": true,
"subLocationsHierarchyKey": "AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA"
}
},
"doorToCameraMap": {
"<key>": [
"AAAAAAAAAAAAAAAAAAAAAA"
]
},
"doorsValidated": true,
"enabled": true,
"enabledTimestampMs": 0,
"enablingUser": "<string>",
"enablingUserUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"identifyFacesFromBadge": true,
"migrated": true,
"placeId": 0,
"placeToSettingsMap": {
"<key>": {
"alertUnauthorizedFaces": true,
"badgeAuthDisablesAlarmMonitoring": true,
"createSeekPoints": true,
"doorInfoMap": {
"<key>": {}
},
"identifyFacesFromBadge": true,
"misconfiguredDoors": [
0
],
"placeId": 0,
"placeName": "<string>",
"rhombusToken": "AAAAAAAAAAAAAAAAAAAAAA",
"saveClips": true,
"webhookId": 0
}
},
"rhombusToken": "AAAAAAAAAAAAAAAAAAAAAA",
"saveClips": true,
"webhookId": 0
}
} ' import requests
url = " https://api2.rhombussystems.com/api/integrations/accessControl/updateKisiIntegration "
headers = {
" x-auth-scheme ": " api-token ",
" x-auth-apikey ": " YOUR_API_KEY ",
" Content-Type ": " application/json ",
}
payload = {
" kisiSettings ": {
" alertUnauthorizedFaces ": True ,
" apiSecretKey ": " <string> ",
" createSeekPoints ": True ,
" defaultOptions ": {
" alertUnauthorizedFaces ": True ,
" badgeAuthDisablesAlarmMonitoring ": True ,
" createSeekPoints ": True ,
" defaultOptionsEnabled ": True ,
" identifyFacesFromBadge ": True ,
" saveClips ": True
},
" doorInfoMap ": {
" <key> ": {
" assignedCameraList ": [
" AAAAAAAAAAAAAAAAAAAAAA "
],
" clipDuration ": 0 ,
" doorName ": " <string> ",
" leadingSeconds ": 0 ,
" locationUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" remoteUnlock ": True ,
" subLocationsHierarchyKey ": " AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA "
}
},
" doorToCameraMap ": {
" <key> ": [
" AAAAAAAAAAAAAAAAAAAAAA "
]
},
" doorsValidated ": True ,
" enabled ": True ,
" enabledTimestampMs ": 0 ,
" enablingUser ": " <string> ",
" enablingUserUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" identifyFacesFromBadge ": True ,
" migrated ": True ,
" placeId ": 0 ,
" placeToSettingsMap ": {
" <key> ": {
" alertUnauthorizedFaces ": True ,
" badgeAuthDisablesAlarmMonitoring ": True ,
" createSeekPoints ": True ,
" doorInfoMap ": {
" <key> ": {}
},
" identifyFacesFromBadge ": True ,
" misconfiguredDoors ": [
0
],
" placeId ": 0 ,
" placeName ": " <string> ",
" rhombusToken ": " AAAAAAAAAAAAAAAAAAAAAA ",
" saveClips ": True ,
" webhookId ": 0
}
},
" rhombusToken ": " AAAAAAAAAAAAAAAAAAAAAA ",
" saveClips ": True ,
" webhookId ": 0
}
}
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/updateKisiIntegration ', {
method : ' POST ',
headers : {
' x-auth-scheme ': ' api-token ',
' x-auth-apikey ': ' YOUR_API_KEY ',
' Content-Type ': ' application/json ',
},
body : JSON. stringify ({
" kisiSettings ": {
" alertUnauthorizedFaces ": true ,
" apiSecretKey ": " <string> ",
" createSeekPoints ": true ,
" defaultOptions ": {
" alertUnauthorizedFaces ": true ,
" badgeAuthDisablesAlarmMonitoring ": true ,
" createSeekPoints ": true ,
" defaultOptionsEnabled ": true ,
" identifyFacesFromBadge ": true ,
" saveClips ": true
},
" doorInfoMap ": {
" <key> ": {
" assignedCameraList ": [
" AAAAAAAAAAAAAAAAAAAAAA "
],
" clipDuration ": 0 ,
" doorName ": " <string> ",
" leadingSeconds ": 0 ,
" locationUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" remoteUnlock ": true ,
" subLocationsHierarchyKey ": " AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA "
}
},
" doorToCameraMap ": {
" <key> ": [
" AAAAAAAAAAAAAAAAAAAAAA "
]
},
" doorsValidated ": true ,
" enabled ": true ,
" enabledTimestampMs ": 0 ,
" enablingUser ": " <string> ",
" enablingUserUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" identifyFacesFromBadge ": true ,
" migrated ": true ,
" placeId ": 0 ,
" placeToSettingsMap ": {
" <key> ": {
" alertUnauthorizedFaces ": true ,
" badgeAuthDisablesAlarmMonitoring ": true ,
" createSeekPoints ": true ,
" doorInfoMap ": {
" <key> ": {}
},
" identifyFacesFromBadge ": true ,
" misconfiguredDoors ": [
0
],
" placeId ": 0 ,
" placeName ": " <string> ",
" rhombusToken ": " AAAAAAAAAAAAAAAAAAAAAA ",
" saveClips ": true ,
" webhookId ": 0
}
},
" rhombusToken ": " AAAAAAAAAAAAAAAAAAAAAA ",
" saveClips ": true ,
" webhookId ": 0
}
}),
});
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 = """
{
"kisiSettings": {
"alertUnauthorizedFaces": true,
"apiSecretKey": "<string>",
"createSeekPoints": true,
"defaultOptions": {
"alertUnauthorizedFaces": true,
"badgeAuthDisablesAlarmMonitoring": true,
"createSeekPoints": true,
"defaultOptionsEnabled": true,
"identifyFacesFromBadge": true,
"saveClips": true
},
"doorInfoMap": {
"<key>": {
"assignedCameraList": [
"AAAAAAAAAAAAAAAAAAAAAA"
],
"clipDuration": 0,
"doorName": "<string>",
"leadingSeconds": 0,
"locationUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"remoteUnlock": true,
"subLocationsHierarchyKey": "AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA.AAAAAAAAAAAAAAAAAAAAAA"
}
},
"doorToCameraMap": {
"<key>": [
"AAAAAAAAAAAAAAAAAAAAAA"
]
},
"doorsValidated": true,
"enabled": true,
"enabledTimestampMs": 0,
"enablingUser": "<string>",
"enablingUserUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"identifyFacesFromBadge": true,
"migrated": true,
"placeId": 0,
"placeToSettingsMap": {
"<key>": {
"alertUnauthorizedFaces": true,
"badgeAuthDisablesAlarmMonitoring": true,
"createSeekPoints": true,
"doorInfoMap": {
"<key>": {}
},
"identifyFacesFromBadge": true,
"misconfiguredDoors": [
0
],
"placeId": 0,
"placeName": "<string>",
"rhombusToken": "AAAAAAAAAAAAAAAAAAAAAA",
"saveClips": true,
"webhookId": 0
}
},
"rhombusToken": "AAAAAAAAAAAAAAAAAAAAAA",
"saveClips": true,
"webhookId": 0
}
}
""";
HttpRequest request = HttpRequest. newBuilder ()
. uri ( URI. create (" https://api2.rhombussystems.com/api/integrations/accessControl/updateKisiIntegration "))
. 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 ());
}
}