KSC Open API
Kaspersky Security Center API description
boolean ScanDiapasons::UpdateDiapason ( int  idDiapason,
params  pInfo,
[out] params  pInvalidIntervals 
)

Change one or more attributes of diapason.

Performs update of one or more attributes of diapason. If at least one of diapasons intersects with any of existing diapasons or is invalid then false is returned and such interval is added to "KLDPNS_ILS" array in ppInvalidIntervals.

Parameters:
idDiapason(int) id of diapason to modify
pInfo(params) container with diapason attributes (see List of network diapason attributes)
[out]pInvalidIntervals(params) container with diapason attributes (see List of network diapason attributes)
Returns:
(boolean) true if if the diapason was successfully updated
See also:
List of network diapason attributes

See also Python code with use of KlAkOAPI Python package below:

            server = KlAkOAPI.AdmServer.KlAkAdmServer.Create("https://ksc.example.com:13299", "username", "password", verify = False)
            oScanDiapasons = KlAkOAPI.ScanDiapasons.KlAkScanDiapasons(server)            
            idDiapason = ...
            oScanDiapasons.UpdateDiapason(idDiapason, {"KLDPNS_ScanEnabled": True})