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.
DST is not available in UTC-12 and UTC+14 time zones.
- application/json
Request Body required
- is_enabled boolean
Feature activation
starts object
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
Hour of the day
ends object
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
Hour of the day
- 200
- 400
- 401
OK
DST is not available in your time zone
Wrong month param
Wrong day param
Wrong hour 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 time zone
- Wrong month
- Wrong day
- Wrong hour
- Base
- No value
- Wrong param type
Schema
- error string
Error message
{
"error": true
}
{
"error": "DST is not available in your time zone"
}
{
"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 hour. 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"
}