# Set

## Function

This API is used to set parameter for Storage > Schedules(cloud dedicated) > Record page.

## Request Message

See Storage > Schedules(cloud dedicated) > Record > Parameter Description > Table 1 for parameter description.

Sample:

    POST /API/DeviceConfig/Audio/Set HTTP/1.1

    {
        "version": "1.0",
        "data": {"channel_info": {"CH1": {
            "copy_ch": "all",
            "category": [
                {
                    "schedule_type": "Normal",
                    "schedule_list": [
                        {
                            "enable": true,
                            "weekday": [
                                "Sunday",
                                "Monday",
                                "Tuesday",
                                "Wednesday"
                            ],
                            "start_time": 0,
                            "end_time": 1440
                        },
                        {
                            "enable": true,
                            "weekday": [
                                "Thursday",
                                "Friday",
                                "Saturday"
                            ],
                            "start_time": 0,
                            "end_time": 660
                        },
                        {
                            "enable": true,
                            "weekday": [
                                "Thursday",
                                "Friday",
                                "Saturday"
                            ],
                            "start_time": 840,
                            "end_time": 1440
                        }
                    ]
                },
                {
                    "schedule_type": "Motion",
                    "schedule_list": [{
                        "enable": true,
                        "weekday": [
                            "Sunday",
                            "Monday",
                            "Tuesday",
                            "Wednesday",
                            "Thursday",
                            "Friday",
                            "Saturday"
                        ],
                        "start_time": 0,
                        "end_time": 1440
                    }]
                }
            ]
        }}}
    }

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