# Set

## Function

This API is used to set parameter for Event Settings(cloud dedicated) > Alarm Linkage .

## Request Message

See Event Settings(cloud dedicated) > Alarm Linkage > Range > Parameter Description > Table 1 for parameter description

Sample：

    POST /API/Event/AlarmLinkage/Set HTTP/1.1

    {
        "version": "1.0",
        "data": {
            "channel_info": {"CH1": {
                "post_recording": "5",
                "record_enable": true,
                "alarm_out": [],
                "latch_time": "5",
                "io_output": false,
                "send_email": false,
                "send_email_btns": [
                    {
                        "title": "Email Configuration",
                        "page": "net_email"
                    },
                    {
                        "title": "Email Schedule",
                        "page": "schedules_email_cloud"
                    }
                ],
                "ftp_picture_upload": false,
                "ftp_video_upload": false,
                "siren": false,
                "siren_btns": [{
                    "title": "Siren",
                    "page": "chn_siren_cloud"
                }],
                "deterrence_btns": [{
                    "title": "FloodLight",
                    "page": "chn_floodlight"
                }],
                "deterrence": false,
                "chn_index": "CH1",
                "ptz_linkage": false,
                "ptz_linkage_settings": {
                    "ptz_linkage_data": [
                        "CH8=Mode_Preset=preset_dwell_time5=num1-1-1"
                    ]
                }
            }},
            "channel": "CH1",
            "ability": "FaceDetection"
        }
    }

## Response Message

Sampel：

    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.