cURL Python JavaScript Java
bash curl --request POST \
--url ' https://api2.rhombussystems.com/api/partner/customizeClientDevice ' \
--header ' x-auth-scheme: partner-api-token ' \
--header ' x-auth-apikey: YOUR_API_KEY ' \
--header ' Content-Type: application/json ' \
--data ' {
"clientDeviceUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"clientOrgUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"configUpdate": {
"ai_license_invalid": true,
"audio_aec_via_software": true,
"audio_ai_disabled": true,
"audio_external_mic_boost": 0,
"audio_external_mic_volume": 0,
"audio_external_speaker_volume": 0,
"audio_internal_mic_aec_enabled": true,
"audio_internal_mic_boost": 0,
"audio_internal_mic_volume": 0,
"audio_internal_speaker_volume": 0,
"audio_min_echo_amplitude": 0,
"audio_playback_gain_percent": 0,
"audio_record": true,
"audio_supported": true,
"audio_use_external_mic": true,
"audio_use_external_speaker": true,
"audio_use_internal_speaker": true,
"bandwidth_reports_disabled": true,
"blocked_debounce_time_ms": 0,
"blocked_threshold": 0,
"char_threshold": 0,
"cloud_ai_smart_crop_enabled": true,
"cloud_ai_stream_enabled": true,
"core_event_upload_target": "0",
"crossing_regions": [],
"custom_events": true,
"deviceUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"device_mic_enabled": true,
"device_near_audio_silenced": true,
"device_speaker_enabled": true,
"dewarpMode": "NORMAL",
"disabled_schedule": [],
"disabled_schedule_inverted": true,
"disabled_schedule_uuid": "AAAAAAAAAAAAAAAAAAAAAA",
"dwell_reset_ttl_ms": 0,
"dwell_time_ms": 0,
"exposure_level": 0,
"firmware_dev_settings": {},
"fisheye_display_mode": "RAW",
"floorplan_homography": [],
"frontendEqualizerHighShelf": {},
"frontendEqualizerLowShelf": {},
"frontendEqualizerPeaking1": {},
"frontendEqualizerPeaking2": {},
"frontendEqualizerPeaking3": {},
"frontendNoiseSuppression": true,
"h265_realtime_encoding_enabled": true,
"h265_vod_encoding_enabled": true,
"hdr_enabled": true,
"high_res_detection": true,
"human_detection": true,
"human_loitering": true,
"human_loitering_settings": {},
"img_brightness": 0,
"img_contrast": 0,
"img_saturation": 0,
"img_sharpness": 0,
"inactivity_settings": {},
"lastModified": 0,
"led_mode_blink_period_ms": 0,
"led_mode_when_active": "LED_OFF",
"led_mode_when_inactive": "LED_OFF",
"led_stealth_mode": true,
"lightweight_detection_disabled": true,
"live_license_invalid": true,
"max_detections_per_frame": 0,
"media_ttl_minutes": 0,
"metering_config": {},
"motor_config": {},
"mounting_direction": "DOWN",
"night_exposure_level": 0,
"night_img_brightness": 0,
"night_img_contrast": 0,
"night_img_saturation": 0,
"night_img_sharpness": 0,
"night_metering_config": {},
"night_sensor_gain_max": 0,
"night_shutter_time_max": 0,
"night_shutter_time_min": 0,
"object_search": true,
"occupancy_count_high_threshold": 0,
"occupancy_count_low_threshold": 0,
"occupancy_counting": true,
"on_demand_license_invalid": true,
"orgUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"people_tracking": true,
"person_reidentification": true,
"privacy_window_polygons": [],
"privacy_windows": [],
"ptz_config": {},
"ptz_home": {},
"record_on_motion": true,
"region_for_occupancy": {},
"region_of_interest": {},
"region_of_interest_groups": [],
"resolution": {},
"rotation": 0,
"rtsp_encoder": 0,
"segment_max_bytes": 0,
"sensor_gain_max": 0,
"shared_fov": [],
"shutter_time_max": 0,
"shutter_time_min": 0,
"snapshot_height": 0,
"snapshot_interval_secs": 0,
"snapshot_upload_target": "0",
"storage_target_free_megabytes": 0,
"storage_target_free_space_permyriad": 0,
"thumbstrip_upload_target": "0",
"tile_views": [],
"upload_all_detections": true,
"use_onboard_lpr": true,
"vehicle_detection": true,
"video_ai_disabled": true,
"video_persist_disabled": true,
"wdr_enabled": true,
"wdr_strength": 0,
"zero_motion_video_bitrate_percent": 0
},
"customizations": {
"forceLowBandwidthOnAllCameras": false,
"inactivityTimeout": 30
}
} ' import requests
url = " https://api2.rhombussystems.com/api/partner/customizeClientDevice "
headers = {
" x-auth-scheme ": " partner-api-token ",
" x-auth-apikey ": " YOUR_API_KEY ",
" Content-Type ": " application/json ",
}
payload = {
" clientDeviceUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" clientOrgUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" configUpdate ": {
" ai_license_invalid ": True ,
" audio_aec_via_software ": True ,
" audio_ai_disabled ": True ,
" audio_external_mic_boost ": 0 ,
" audio_external_mic_volume ": 0 ,
" audio_external_speaker_volume ": 0 ,
" audio_internal_mic_aec_enabled ": True ,
" audio_internal_mic_boost ": 0 ,
" audio_internal_mic_volume ": 0 ,
" audio_internal_speaker_volume ": 0 ,
" audio_min_echo_amplitude ": 0 ,
" audio_playback_gain_percent ": 0 ,
" audio_record ": True ,
" audio_supported ": True ,
" audio_use_external_mic ": True ,
" audio_use_external_speaker ": True ,
" audio_use_internal_speaker ": True ,
" bandwidth_reports_disabled ": True ,
" blocked_debounce_time_ms ": 0 ,
" blocked_threshold ": 0 ,
" char_threshold ": 0 ,
" cloud_ai_smart_crop_enabled ": True ,
" cloud_ai_stream_enabled ": True ,
" core_event_upload_target ": " 0 ",
" crossing_regions ": [],
" custom_events ": True ,
" deviceUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" device_mic_enabled ": True ,
" device_near_audio_silenced ": True ,
" device_speaker_enabled ": True ,
" dewarpMode ": " NORMAL ",
" disabled_schedule ": [],
" disabled_schedule_inverted ": True ,
" disabled_schedule_uuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" dwell_reset_ttl_ms ": 0 ,
" dwell_time_ms ": 0 ,
" exposure_level ": 0 ,
" firmware_dev_settings ": {},
" fisheye_display_mode ": " RAW ",
" floorplan_homography ": [],
" frontendEqualizerHighShelf ": {},
" frontendEqualizerLowShelf ": {},
" frontendEqualizerPeaking1 ": {},
" frontendEqualizerPeaking2 ": {},
" frontendEqualizerPeaking3 ": {},
" frontendNoiseSuppression ": True ,
" h265_realtime_encoding_enabled ": True ,
" h265_vod_encoding_enabled ": True ,
" hdr_enabled ": True ,
" high_res_detection ": True ,
" human_detection ": True ,
" human_loitering ": True ,
" human_loitering_settings ": {},
" img_brightness ": 0 ,
" img_contrast ": 0 ,
" img_saturation ": 0 ,
" img_sharpness ": 0 ,
" inactivity_settings ": {},
" lastModified ": 0 ,
" led_mode_blink_period_ms ": 0 ,
" led_mode_when_active ": " LED_OFF ",
" led_mode_when_inactive ": " LED_OFF ",
" led_stealth_mode ": True ,
" lightweight_detection_disabled ": True ,
" live_license_invalid ": True ,
" max_detections_per_frame ": 0 ,
" media_ttl_minutes ": 0 ,
" metering_config ": {},
" motor_config ": {},
" mounting_direction ": " DOWN ",
" night_exposure_level ": 0 ,
" night_img_brightness ": 0 ,
" night_img_contrast ": 0 ,
" night_img_saturation ": 0 ,
" night_img_sharpness ": 0 ,
" night_metering_config ": {},
" night_sensor_gain_max ": 0 ,
" night_shutter_time_max ": 0 ,
" night_shutter_time_min ": 0 ,
" object_search ": True ,
" occupancy_count_high_threshold ": 0 ,
" occupancy_count_low_threshold ": 0 ,
" occupancy_counting ": True ,
" on_demand_license_invalid ": True ,
" orgUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" people_tracking ": True ,
" person_reidentification ": True ,
" privacy_window_polygons ": [],
" privacy_windows ": [],
" ptz_config ": {},
" ptz_home ": {},
" record_on_motion ": True ,
" region_for_occupancy ": {},
" region_of_interest ": {},
" region_of_interest_groups ": [],
" resolution ": {},
" rotation ": 0 ,
" rtsp_encoder ": 0 ,
" segment_max_bytes ": 0 ,
" sensor_gain_max ": 0 ,
" shared_fov ": [],
" shutter_time_max ": 0 ,
" shutter_time_min ": 0 ,
" snapshot_height ": 0 ,
" snapshot_interval_secs ": 0 ,
" snapshot_upload_target ": " 0 ",
" storage_target_free_megabytes ": 0 ,
" storage_target_free_space_permyriad ": 0 ,
" thumbstrip_upload_target ": " 0 ",
" tile_views ": [],
" upload_all_detections ": True ,
" use_onboard_lpr ": True ,
" vehicle_detection ": True ,
" video_ai_disabled ": True ,
" video_persist_disabled ": True ,
" wdr_enabled ": True ,
" wdr_strength ": 0 ,
" zero_motion_video_bitrate_percent ": 0
},
" customizations ": {
" forceLowBandwidthOnAllCameras ": False ,
" inactivityTimeout ": 30
}
}
response = requests. post ( url , headers= headers , json= payload )
response. raise_for_status ()
print ( response . json ()) const response = await fetch (' https://api2.rhombussystems.com/api/partner/customizeClientDevice ', {
method : ' POST ',
headers : {
' x-auth-scheme ': ' partner-api-token ',
' x-auth-apikey ': ' YOUR_API_KEY ',
' Content-Type ': ' application/json ',
},
body : JSON. stringify ({
" clientDeviceUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" clientOrgUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" configUpdate ": {
" ai_license_invalid ": true ,
" audio_aec_via_software ": true ,
" audio_ai_disabled ": true ,
" audio_external_mic_boost ": 0 ,
" audio_external_mic_volume ": 0 ,
" audio_external_speaker_volume ": 0 ,
" audio_internal_mic_aec_enabled ": true ,
" audio_internal_mic_boost ": 0 ,
" audio_internal_mic_volume ": 0 ,
" audio_internal_speaker_volume ": 0 ,
" audio_min_echo_amplitude ": 0 ,
" audio_playback_gain_percent ": 0 ,
" audio_record ": true ,
" audio_supported ": true ,
" audio_use_external_mic ": true ,
" audio_use_external_speaker ": true ,
" audio_use_internal_speaker ": true ,
" bandwidth_reports_disabled ": true ,
" blocked_debounce_time_ms ": 0 ,
" blocked_threshold ": 0 ,
" char_threshold ": 0 ,
" cloud_ai_smart_crop_enabled ": true ,
" cloud_ai_stream_enabled ": true ,
" core_event_upload_target ": " 0 ",
" crossing_regions ": [],
" custom_events ": true ,
" deviceUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" device_mic_enabled ": true ,
" device_near_audio_silenced ": true ,
" device_speaker_enabled ": true ,
" dewarpMode ": " NORMAL ",
" disabled_schedule ": [],
" disabled_schedule_inverted ": true ,
" disabled_schedule_uuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" dwell_reset_ttl_ms ": 0 ,
" dwell_time_ms ": 0 ,
" exposure_level ": 0 ,
" firmware_dev_settings ": {},
" fisheye_display_mode ": " RAW ",
" floorplan_homography ": [],
" frontendEqualizerHighShelf ": {},
" frontendEqualizerLowShelf ": {},
" frontendEqualizerPeaking1 ": {},
" frontendEqualizerPeaking2 ": {},
" frontendEqualizerPeaking3 ": {},
" frontendNoiseSuppression ": true ,
" h265_realtime_encoding_enabled ": true ,
" h265_vod_encoding_enabled ": true ,
" hdr_enabled ": true ,
" high_res_detection ": true ,
" human_detection ": true ,
" human_loitering ": true ,
" human_loitering_settings ": {},
" img_brightness ": 0 ,
" img_contrast ": 0 ,
" img_saturation ": 0 ,
" img_sharpness ": 0 ,
" inactivity_settings ": {},
" lastModified ": 0 ,
" led_mode_blink_period_ms ": 0 ,
" led_mode_when_active ": " LED_OFF ",
" led_mode_when_inactive ": " LED_OFF ",
" led_stealth_mode ": true ,
" lightweight_detection_disabled ": true ,
" live_license_invalid ": true ,
" max_detections_per_frame ": 0 ,
" media_ttl_minutes ": 0 ,
" metering_config ": {},
" motor_config ": {},
" mounting_direction ": " DOWN ",
" night_exposure_level ": 0 ,
" night_img_brightness ": 0 ,
" night_img_contrast ": 0 ,
" night_img_saturation ": 0 ,
" night_img_sharpness ": 0 ,
" night_metering_config ": {},
" night_sensor_gain_max ": 0 ,
" night_shutter_time_max ": 0 ,
" night_shutter_time_min ": 0 ,
" object_search ": true ,
" occupancy_count_high_threshold ": 0 ,
" occupancy_count_low_threshold ": 0 ,
" occupancy_counting ": true ,
" on_demand_license_invalid ": true ,
" orgUuid ": " AAAAAAAAAAAAAAAAAAAAAA ",
" people_tracking ": true ,
" person_reidentification ": true ,
" privacy_window_polygons ": [],
" privacy_windows ": [],
" ptz_config ": {},
" ptz_home ": {},
" record_on_motion ": true ,
" region_for_occupancy ": {},
" region_of_interest ": {},
" region_of_interest_groups ": [],
" resolution ": {},
" rotation ": 0 ,
" rtsp_encoder ": 0 ,
" segment_max_bytes ": 0 ,
" sensor_gain_max ": 0 ,
" shared_fov ": [],
" shutter_time_max ": 0 ,
" shutter_time_min ": 0 ,
" snapshot_height ": 0 ,
" snapshot_interval_secs ": 0 ,
" snapshot_upload_target ": " 0 ",
" storage_target_free_megabytes ": 0 ,
" storage_target_free_space_permyriad ": 0 ,
" thumbstrip_upload_target ": " 0 ",
" tile_views ": [],
" upload_all_detections ": true ,
" use_onboard_lpr ": true ,
" vehicle_detection ": true ,
" video_ai_disabled ": true ,
" video_persist_disabled ": true ,
" wdr_enabled ": true ,
" wdr_strength ": 0 ,
" zero_motion_video_bitrate_percent ": 0
},
" customizations ": {
" forceLowBandwidthOnAllCameras ": false ,
" inactivityTimeout ": 30
}
}),
});
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 = """
{
"clientDeviceUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"clientOrgUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"configUpdate": {
"ai_license_invalid": true,
"audio_aec_via_software": true,
"audio_ai_disabled": true,
"audio_external_mic_boost": 0,
"audio_external_mic_volume": 0,
"audio_external_speaker_volume": 0,
"audio_internal_mic_aec_enabled": true,
"audio_internal_mic_boost": 0,
"audio_internal_mic_volume": 0,
"audio_internal_speaker_volume": 0,
"audio_min_echo_amplitude": 0,
"audio_playback_gain_percent": 0,
"audio_record": true,
"audio_supported": true,
"audio_use_external_mic": true,
"audio_use_external_speaker": true,
"audio_use_internal_speaker": true,
"bandwidth_reports_disabled": true,
"blocked_debounce_time_ms": 0,
"blocked_threshold": 0,
"char_threshold": 0,
"cloud_ai_smart_crop_enabled": true,
"cloud_ai_stream_enabled": true,
"core_event_upload_target": "0",
"crossing_regions": [],
"custom_events": true,
"deviceUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"device_mic_enabled": true,
"device_near_audio_silenced": true,
"device_speaker_enabled": true,
"dewarpMode": "NORMAL",
"disabled_schedule": [],
"disabled_schedule_inverted": true,
"disabled_schedule_uuid": "AAAAAAAAAAAAAAAAAAAAAA",
"dwell_reset_ttl_ms": 0,
"dwell_time_ms": 0,
"exposure_level": 0,
"firmware_dev_settings": {},
"fisheye_display_mode": "RAW",
"floorplan_homography": [],
"frontendEqualizerHighShelf": {},
"frontendEqualizerLowShelf": {},
"frontendEqualizerPeaking1": {},
"frontendEqualizerPeaking2": {},
"frontendEqualizerPeaking3": {},
"frontendNoiseSuppression": true,
"h265_realtime_encoding_enabled": true,
"h265_vod_encoding_enabled": true,
"hdr_enabled": true,
"high_res_detection": true,
"human_detection": true,
"human_loitering": true,
"human_loitering_settings": {},
"img_brightness": 0,
"img_contrast": 0,
"img_saturation": 0,
"img_sharpness": 0,
"inactivity_settings": {},
"lastModified": 0,
"led_mode_blink_period_ms": 0,
"led_mode_when_active": "LED_OFF",
"led_mode_when_inactive": "LED_OFF",
"led_stealth_mode": true,
"lightweight_detection_disabled": true,
"live_license_invalid": true,
"max_detections_per_frame": 0,
"media_ttl_minutes": 0,
"metering_config": {},
"motor_config": {},
"mounting_direction": "DOWN",
"night_exposure_level": 0,
"night_img_brightness": 0,
"night_img_contrast": 0,
"night_img_saturation": 0,
"night_img_sharpness": 0,
"night_metering_config": {},
"night_sensor_gain_max": 0,
"night_shutter_time_max": 0,
"night_shutter_time_min": 0,
"object_search": true,
"occupancy_count_high_threshold": 0,
"occupancy_count_low_threshold": 0,
"occupancy_counting": true,
"on_demand_license_invalid": true,
"orgUuid": "AAAAAAAAAAAAAAAAAAAAAA",
"people_tracking": true,
"person_reidentification": true,
"privacy_window_polygons": [],
"privacy_windows": [],
"ptz_config": {},
"ptz_home": {},
"record_on_motion": true,
"region_for_occupancy": {},
"region_of_interest": {},
"region_of_interest_groups": [],
"resolution": {},
"rotation": 0,
"rtsp_encoder": 0,
"segment_max_bytes": 0,
"sensor_gain_max": 0,
"shared_fov": [],
"shutter_time_max": 0,
"shutter_time_min": 0,
"snapshot_height": 0,
"snapshot_interval_secs": 0,
"snapshot_upload_target": "0",
"storage_target_free_megabytes": 0,
"storage_target_free_space_permyriad": 0,
"thumbstrip_upload_target": "0",
"tile_views": [],
"upload_all_detections": true,
"use_onboard_lpr": true,
"vehicle_detection": true,
"video_ai_disabled": true,
"video_persist_disabled": true,
"wdr_enabled": true,
"wdr_strength": 0,
"zero_motion_video_bitrate_percent": 0
},
"customizations": {
"forceLowBandwidthOnAllCameras": false,
"inactivityTimeout": 30
}
}
""";
HttpRequest request = HttpRequest. newBuilder ()
. uri ( URI. create (" https://api2.rhombussystems.com/api/partner/customizeClientDevice "))
. header (" x-auth-scheme ", " partner-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 ());
}
}