Set

Function

This API is used for Settings Alarm > DisarmingLinkage Parameters.

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
enableboolLinkageManage switch.
linkage_infoobjectFor details, see Table 2
channel_infoobjectFor details on single channel, see Table 3
Table 2
ParameterRangeTypeDescription
linkage_sirenboolWhether to withdraw linkage alarm to withdraw switch.
linkage_floodlightboolWhether to remove the white light switch.
linkage_enforcerlightboolWhether to remove the red and blue light switch.
linkage_alarmoutboolWhether to remove alarm output switch.
linkage_ptzboolWhether to remove PTZ linkage switch.
linkage_voicepromptboolWhether to withdraw voice broadcast switch.
linkage_mobile_pushboolWhether to remove the phone push switch.
Table 3
ParameterRangeTypeDescription
CH1object
object
IP_CH1object
object
WIFI_CH1object
object

Sample:

POST /API/LinkageConfig/LinkageManage/Set HTTP/1.1
{
    "version": "1.0",
    "channel_info": {
        "CH1": {
            "enable": true,
            "linkage_info": {
                "linkage_siren": true,
                "linkage_floodlight": true,
                "linkage_enforcerlight": true,
                "linkage_alarmout": true,
                "linkage_ptz": false,
                "linkage_voiceprompt": false,
                "linkage_mobile_push": false
            }
        }
    },
}

Response Message

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {}
}

Error Code

See Response Messages Body and Common error_code for more information.