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, the clock jumps ahead by 1 hour. In the autumn (fall), the period of daylight saving time ends and the 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 required
Feature activation
starts object
The model describes a time change rule
month integer requiredPossible values:
>= 1and<= 12Month 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:
<= 23Hour of the day
ends object
The model describes a time change rule
month integer requiredPossible values:
>= 1and<= 12Month 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:
<= 23Hour of the day
- 200
- 400
- 401
OK
- DST is not available in your time zone
- Wrong month
- Wrong day
- Wrong hour
- 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
- Missed J S O N body
- Missed param
- Wrong param type
Schema
- error string
Error information
{
"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 information
{
"error": "Log In"
}
{
"error": "Log In"
}