Set Daylight Saving Time (DST) settings
Configures DST settings.
DST is a seasonal time change measure where clocks are set ahead of standard time during part of the year. When DST starts, clock jumps ahead by 1 hour. In the autumn (fall), the period of daylight saving time ends and clocks change back to standard time.
- application/json
Request Body required
- MOD1
- MOD2
- is_enabled boolean required
Feature activation
starts object required
This model describes time change rule
month integer requiredPossible values:
>= 1
and<= 12
Month number
day string requiredPossible values: [
last_thursday
,last_friday
,friday_before_last_sunday
,first_saturday
,last_saturday
,saturday_before_last_sunday
,first_sunday
,second_sunday
,fourth_sunday
,last_sunday
]Day of the month
hour integer requiredPossible values:
<= 23
Hours of the day
ends object required
This model describes time change rule
month integer requiredPossible values:
>= 1
and<= 12
Month number
day string requiredPossible values: [
last_thursday
,last_friday
,friday_before_last_sunday
,first_saturday
,last_saturday
,saturday_before_last_sunday
,first_sunday
,second_sunday
,fourth_sunday
,last_sunday
]Day of the month
hour integer requiredPossible values:
<= 23
Hours of the day
- is_enabled boolean required
Feature activation
- 200
- 400
- 401
OK
Wrong is_enabled param
Wrong month param
Wrong day param
Wrong hour param
Missed json body or wrong param. Response sample:
"error": "Wrong JSON body"
- Required field is not provided. Response sample:
"error": "Wrong JSON body: no value for `param`"
where param
- is a required field that was not provided
- Field was of the wrong type. Response sample:
"error": "Wrong JSON body: value `param` was of the wrong type"
where param
- is a field of the wrong type
- Identical start and end rules. Response sample:
"error": "Start and End rules cannot be the same"
- Identical start and end rules. Response sample:
"error": "Minimal interval between time change rules is 2 hours"
- application/json
- Schema
- Example (from schema)
- Wrong month
- Wrong day
- Wrong hour
- Base
- No value
- Wrong param type
- Identical start and end rules
- Too short interval
Schema
- error string
error type/info
{
"error": true
}
{
"error": "Wrong JSON body: value month was out of range 1..12"
}
{
"error": "Wrong day. Available values are in range: [last_thursday, last_friday, friday_before_last_sunday, first_saturday, last_saturday, saturday_before_last_sunday, first_sunday, second_sunday, fourth_sunday, last_sunday]"
}
{
"error": "Wrong JSON body: value hour was out of range 0..23"
}
{
"error": "Wrong JSON body"
}
{
"error": "Wrong JSON body: no value for `param`"
}
{
"error": "Wrong JSON body: value `param` was of the wrong type"
}
{
"error": "Start and End rules cannot be the same"
}
{
"error": "Minimal interval between time change rules is 2 hours"
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Log In
Schema
- error string
error message
{
"error": "Log In"
}
{
"error": "Log In"
}