# Set

## Function

This API is used to set parameter for Alarm > Siren(cloud dedicated) .

## Request Message

See Alarm > Flood-light > Range > Parameter Description > Table 1 for parameter description

Sample：

    POST /API/AlarmConfig/Siren/Set HTTP/1.1

    {
        "version": "1.0",
        "data": {
            "channel_info": {"CH1": {
                "siren_switch": false,
                "siren_time": 10,
                "siren_value": 7,
                "siren_type_content": {"Alarm1": {}},
                "siren_type": "Alarm1",
                "siren_file_name": "",
                "schedule_list": [{
                    "enable": true,
                    "weekday": [
                        "Sunday",
                        "Monday",
                        "Tuesday",
                        "Wednesday",
                        "Thursday",
                        "Friday",
                        "Saturday"
                    ],
                    "start_time": 0,
                    "end_time": 1440
                }],
                "chn_index": "CH1"
            }},
            "page_type": "AlarmConfig"
        }
    }

## 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.