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
hours 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
hours integer requiredPossible values:
<= 23
Hours of the day
- is_enabled boolean required
Feature activation
- 200
- 400
- 401
OK
Wrong month param
Wrong week param
Wrong day param
Wrong hours param
Missed json body or wrong param. Response sample:
"error": "Missed 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
- application/json
- Schema
- Example (from schema)
- Wrong month
- Wrong day
- Wrong hours
- Base
- No value
- Wrong param type
Schema
- error string
Error message
{
"error": true
}
{
"error": "Wrong month. Available values are in 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 hours. Available values are in range [0..23]"
}
{
"error": "Missed json body"
}
{
"error": "Wrong JSON body: no value for `param`"
}
{
"error": "Wrong JSON body: value `param` was of the wrong type"
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Log In
Schema
- error string
Error message
{
"error": "Log In"
}
{
"error": "Log In"
}