# Set

## Function

This API is used to set parameter for Network > Email > Schedules(cloud dedicated) .

## Request Message

See Network > Email > Schedules(cloud dedicated) > Range > Parameter Description > Table 1 for parameter description

Sample：

    POST /API/Schedules/Email/Set HTTP/1.1

    {
        "version": "1.0",
        "data": {"schedule_list": [
            {
                "enable": true,
                "start_time": 0,
                "end_time": 1440,
                "weekday": [
                    "Sunday",
                    "Monday",
                    "Tuesday",
                    "Wednesday",
                    "Thursday"
                ]
            },
            {
                "enable": true,
                "start_time": 0,
                "end_time": 240,
                "weekday": [
                    "Friday",
                    "Saturday"
                ]
            },
            {
                "enable": true,
                "start_time": 420,
                "end_time": 1440,
                "weekday": [
                    "Friday",
                    "Saturday"
                ]
            }
        ]}
    }

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