# Widget Schedule

#### **Example**

```json
{
        "communityId": 15,
        "customTimes": {
            "monday": [
                {
                    "startAt": "00:01:00",
                    "endAt": "18:00:00"
                }
            ],
            "tuesday": [
                {
                    "startAt": "00:01:00",
                    "endAt": "18:00:00"
                }
            ],
            "wednesday": [
                {
                    "startAt": "00:01:00",
                    "endAt": "18:00:00"
                }
            ],
            "thursday": [
                {
                    "startAt": "00:01:00",
                    "endAt": "18:00:00"
                }
            ],
            "friday": [
                {
                    "startAt": "00:01:00",
                    "endAt": "18:00:00"
                }
            ],
            "saturday": [
                {
                    "startAt": "18:30:00",
                    "endAt": "19:00:00"
                }
            ],
            "sunday": [
                {
                    "startAt": "18:30:00",
                    "endAt": "19:00:00"
                }
            ]
        },
        "timePeriod": 3,
        "widgetId": 706
}
```

#### Fields

| Field       | Type                                                                                                                                       | Comments                                                                                                                               |
| ----------- | ------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- |
| communityId | integer                                                                                                                                    | Unique Id of community which widget belongs                                                                                            |
| customTimes | [Custom times widget schedule](https://developers.socialboards.com/docs/apis/tickets/reference/objects/custom-times-widget-schedule) model | Represent custom schedule of different days of week. If time period has state with value "3" custom times will present; otherwise null |
| timePeriod  | integer                                                                                                                                    | <p>Time period defined which type of schedule used for widget:<br>1: everyday<br>2: only weekdays<br>3: custom schedule</p>            |
| times       | array of [Schedule Time](https://developers.socialboards.com/docs/apis/tickets/reference/objects/schedule-time) models                     | Represent schedule. If  time period has state with value "1" or "3" times field will present; otherwise null                           |
| widgetId    | integer                                                                                                                                    | Unique Id of widget                                                                                                                    |
