update_only
and provide within the arrays timeframe-specific-dates-array
, timeframe-day-of-week-array
, and/or timeframe-holiday-array
the new values for the entries you intend to update, including in each entry the associated timeframe-id
for that entry. If any entries are missing the timeframe-id
parameter, it may result in undesired behavior.update-only
must be set to yes
for this operation to succeed as desired. If any other value is supplied or the parameter update-only
is omitted, it will result in the behavior described in "Replace All Entries in Custom Timeframe" - see examples for more information.Authorization: Bearer ********************
timeframe-id
of the timeframe to modifyupdate-only
must be set to yes
for this operation to succeed as desired. If any other value is supplied or the parameter update-only
is omitted, undesired behavior will occur.doesNotRecur
: no recurrencemonthly-on-last-day
: every month on the last day of the monthmonthly-on-first-last
: monthly on the first or last ordinal weekday, e.g.: the first Friday, the last Thursday - note: this will produce potentially unexpected behavior if used with a date that is not the first or last occurrence of that particular weekdaymonthly-on-ordinal-weekday
: can be used for any ordinal weekday that is NOT the first or last occurrence of that weekday in the given month e.g. the third Friday, the second Mondaymonthly-date
: every month on the same day, e.g.: the 14th day, the 29th day - note: if there are months in which the “day” does not occur, the date will not be active during that month, e.g.: the 31st day of Februaryyearly-on-selected-dates
: every year on the exact month and day, e.g.: April 30th, September 4thannual-month-day
: functionally identical to yearly-on-selected-dates
yearly-first
: every year on the first ordinal weekday of the exact month, e.g.: the first Monday of every June, the first Friday of every August - note: this will produce potentially unexpected behavior if used with a date that is not the first occurrence of that particular weekdayyearly-last
: every year on the last ordinal weekday of the exact month, e.g.: the last Friday of every July, the last Tuesday of every November - note: this will produce potentially unexpected behavior if used with a date that is not the last occurrence of that particular weekdaycustom
: if this option is selected the fields timeframe-recurrence-custom-interval
, timeframe-recurrence-custom-interval-option
, and timeframe-recurrence-custom-interval-count
must be set correctly to produce any behaviortimeframe-recurrence-custom-interval-count
days
: recur every timeframe-recurrence-custom-interval-count
daysweeks
: recur every timeframe-recurrence-custom-interval-count
weeksmonths
: recur every timeframe-recurrence-custom-interval-count
monthsyears
: recur every timeframe-recurrence-custom-interval-count
yearstimeframe-recurrence-custom-interval-count
e.g. 'every 6 days' or 'every 3 months'timeframe-recurrence-custom-interval-count
is set to months
this field determines the count in combination with the option set in timeframe-recurrence-custom-interval-option
, if timeframe-recurrence-custom-interval
is set to years
the count is fixed to a value of 1 and will recur every year according to the option set in timeframe-recurrence-custom-interval-option
timeframe-recurrence-custom-interval
is set to days
or weeks
this field is not used. This field is for months
and years
only.timeframe-recurrence-custom-interval
of months
:monthly-same-day
: recur on the same day of the month, e.g.: the 14th day, the 29th day - note: if there are months in which the “day” does not occur, the date will not be active during that month, e.g.: the 31st day of Februarymonthly-ordinal-weekday
: recur on the same ordinal weekday e.g. the third Friday, the second Mondaymonthly-first-last-weekday
: recur on the first or last instance of the selected weekday in the month, e.g.: the first Wednesday, the last Tuesday - note: this will produce potentially unexpected behavior if used with a date that is not the first or last occurrence of that particular weekdaymonthly-on-last-day
: recur on the last day of the month - note: this will produce potentially unexpected behavior if used with a date that is not the last day of the monthtimeframe-recurrence-custom-interval
of years
:yearly-same-day
: recur on the same day of the same month, e.g.: the 10th of May, the 20th of Octoberyearly-ordinal-weekday
: recur on the same ordinal weekday of the same month, e.g.: the second Tuesday of April, the third Thursday of Novemberyearly-first-last-weekday
: recur on the first or last weekday of the same month, e.g.: the third Wednesday of August, the first Tuesday of December - note: this will produce potentially unexpected behavior if used with a date that is not the first or last occurrence of that particular weekdaynever
: recurrence will continue indefinitelyonADate
: recurrence will end on a date, specified in timeframe-recurrence-end-date
US-CA
for California, United StatesMX-SIN
for Sinaloa, Mexicoobserve-on-holiday-only
: Observe only on the exact holidayobserve-on-holiday-and-next-day
: Observe on the exact holiday and the next dayobserve-on-holiday-and-prior-day
: Observe on the exact holiday and the prior dayobserve-on-exact-date-and-next-workday
: Observe on the exact holiday and the next workdayobserve-on-holiday-and-prior-workday
: Observe on the exact holiday and the prior workdayobserve-on-next-workday
: Observe only on the next workdayobserve-on-prior-workday
: Observe only on the prior workdayobserve-on-holiday-only
: Observe only on the exact holidayobserve-on-holiday-and-next-day
: Observe on the exact holiday and the next dayobserve-on-holiday-and-prior-day
: Observe on the exact holiday and the prior dayobserve-on-exact-date-and-next-workday
: Observe on the exact holiday and the next workdayobserve-on-holiday-and-prior-workday
: Observe on the exact holiday and the prior workdayobserve-on-next-workday
: Observe only on the next workdayobserve-on-prior-workday
: Observe only on the prior workdayobserve-on-holiday-only
: Observe only on the exact holidayobserve-on-holiday-and-next-day
: Observe on the exact holiday and the next dayobserve-on-holiday-and-prior-day
: Observe on the exact holiday and the prior dayobserve-on-exact-date-and-next-workday
: Observe on the exact holiday and the next workdayobserve-on-holiday-and-prior-workday
: Observe on the exact holiday and the prior workdayobserve-on-next-workday
: Observe only on the next workdayobserve-on-prior-workday
: Observe only on the prior workdayobserve-on-holiday-only
: Observe only on the exact holidayobserve-on-holiday-and-next-day
: Observe on the exact holiday and the next dayobserve-on-holiday-and-prior-day
: Observe on the exact holiday and the prior dayobserve-on-exact-date-and-next-workday
: Observe on the exact holiday and the next workdayobserve-on-holiday-and-prior-workday
: Observe on the exact holiday and the prior workdayobserve-on-next-workday
: Observe only on the next workdayobserve-on-prior-workday
: Observe only on the prior workdayobserve-on-holiday-only
: Observe only on the exact holidayobserve-on-holiday-and-next-day
: Observe on the exact holiday and the next dayobserve-on-holiday-and-prior-day
: Observe on the exact holiday and the prior dayobserve-on-exact-date-and-next-workday
: Observe on the exact holiday and the next workdayobserve-on-holiday-and-prior-workday
: Observe on the exact holiday and the prior workdayobserve-on-next-workday
: Observe only on the next workdayobserve-on-prior-workday
: Observe only on the prior workdayobserve-on-holiday-only
: Observe only on the exact holidayobserve-on-holiday-and-next-day
: Observe on the exact holiday and the next dayobserve-on-holiday-and-prior-day
: Observe on the exact holiday and the prior dayobserve-on-exact-date-and-next-workday
: Observe on the exact holiday and the next workdayobserve-on-holiday-and-prior-workday
: Observe on the exact holiday and the prior workdayobserve-on-next-workday
: Observe only on the next workdayobserve-on-prior-workday
: Observe only on the prior workdayobserve-on-holiday-only
: Observe only on the exact holidayobserve-on-holiday-and-next-day
: Observe on the exact holiday and the next dayobserve-on-holiday-and-prior-day
: Observe on the exact holiday and the prior dayobserve-on-exact-date-and-next-workday
: Observe on the exact holiday and the next workdayobserve-on-holiday-and-prior-workday
: Observe on the exact holiday and the prior workdayobserve-on-next-workday
: Observe only on the next workdayobserve-on-prior-workday
: Observe only on the prior workdayM,T,Th,F,S,Su
would produce a workweek of Monday, Tuesday, Thursday, Friday, Saturday, and Sundaynever
: No recurrence.yearlyOnHoliday
: Recurs every year on the holiday.never
: recurs indefinitely.onDate
: ends on the date specified in recurrence_end_date
- note: both fields must be set to produce the desired behaviorweekly
: recur every weekcustom
: if this option is selected the fields timeframe-recurrence-begin-date
, timeframe-recurrence-custom-interval
, timeframe-recurrence-custom-interval-option
, and timeframe-recurrence-custom-interval-count
must be set correctly to produce any behaviortimeframe-recurrence-type
option custom
timeframe-recurrence-custom-interval-count
weeks
: recur every timeframe-recurrence-custom-interval-count
weeksmonths
: recur every timeframe-recurrence-custom-interval-count
monthstimeframe-recurrence-custom-interval
e.g. 'every 6 weeks' or 'every 3 months'timeframe-recurrence-custom-interval
is set to months
this field determines the count in combination with the option set in timeframe-recurrence-custom-interval-option
timeframe-recurrence-custom-interval
is set to weeks
this field is not used. This field is for months
only.timeframe-recurrence-begin-date
.timeframe-recurrence-custom-interval
of months
:monthly-same-day
: recur on the same day of the month, e.g.: the 14th day, the 29th day - note: if there are months in which the “day” does not occur, the Days fo Week will not be active during that month, e.g.: the 31st day of Februarymonthly-ordinal-weekday
: recur on any ordinal weekday in the given month e.g. the third Friday, the second Mondaymonthly-first-last-weekday
: recur on the first or last instance of the selected weekday in the month, e.g.: the first Wednesday, the last Tuesday - note: this will produce potentially unexpected behavior if used with a date that is not the first or last occurrence of that particular weekdaynever
: recurrence will continue indefinitelyonADate
: recurrence will end on a date, specified in timeframe-recurrence-end-date
{
"update-only": "string",
"timeframe-specific-dates-array": [
{
"timeframe-id": "string",
"timeframe-specific-dates-begin-date": "string",
"timeframe-specific-dates-begin-time": "string",
"timeframe-specific-dates-end-date": "string",
"timeframe-specific-dates-end-time": "string",
"timeframe-recurrence-type": "string",
"timeframe-recurrence-custom-interval": "string",
"timeframe-recurrence-custom-interval-count": "string",
"timeframe-recurrence-custom-interval-option": "string",
"timeframe-recurrence-end-option": "string",
"timeframe-recurrence-end-date": "string"
}
],
"timeframe-holiday-array": [
{
"timeframe-id": "string",
"timeframe-holiday-uuid": "string",
"timeframe-holiday-name": "string",
"timeframe-holiday-begin-date": "string",
"country-abbreviation": "string",
"state-province-abbreviation": "string",
"holiday-api-location-hint": "string",
"timeframe-holiday-begin-time-1": "string",
"timeframe-holiday-end-time-1": "string",
"timeframe-holiday-begin-time-2": "string",
"timeframe-holiday-end-time-2": "string",
"timeframe-weekly-monday-observance-option": "string",
"timeframe-weekly-tuesday-observance-option": "string",
"timeframe-weekly-wednesday-observance-option": "string",
"timeframe-weekly-thursday-observance-option": "string",
"timeframe-weekly-friday-observance-option": "string",
"timeframe-weekly-saturday-observance-option": "string",
"timeframe-weekly-sunday-observance-option": "string",
"timeframe-workweek-list": "string",
"timeframe-recurrence-type": "string",
"timeframe-recurrence-end-option": "string",
"timeframe-recurrence-end-date": "string",
"timeframe-expiry-datetime": "string"
}
],
"timeframe-days-of-week-array": [
{
"timeframe-id": "string",
"timeframe-weekly-sunday-begin-time-1": "string",
"timeframe-weekly-sunday-end-time-1": "string",
"timeframe-weekly-sunday-begin-time-2": "string",
"timeframe-weekly-sunday-end-time-2": "string",
"timeframe-weekly-monday-begin-time-1": "string",
"timeframe-weekly-monday-end-time-1": "string",
"timeframe-weekly-monday-begin-time-2": "string",
"timeframe-weekly-monday-end-time-2": "string",
"timeframe-weekly-tuesday-begin-time-1": "string",
"timeframe-weekly-tuesday-end-time-1": "string",
"timeframe-weekly-tuesday-begin-time-2": "string",
"timeframe-weekly-tuesday-end-time-2": "string",
"timeframe-weekly-wednesday-begin-time-1": "string",
"timeframe-weekly-wednesday-end-time-1": "string",
"timeframe-weekly-wednesday-begin-time-2": "string",
"timeframe-weekly-wednesday-end-time-2": "string",
"timeframe-weekly-thursday-begin-time-1": "string",
"timeframe-weekly-thursday-end-time-1": "string",
"timeframe-weekly-thursday-begin-time-2": "string",
"timeframe-weekly-thursday-end-time-2": "string",
"timeframe-weekly-friday-begin-time-1": "string",
"timeframe-weekly-friday-end-time-1": "string",
"timeframe-weekly-friday-begin-time-2": "string",
"timeframe-weekly-friday-end-time-2": "string",
"timeframe-weekly-saturday-begin-time-1": "string",
"timeframe-weekly-saturday-end-time-1": "string",
"timeframe-weekly-saturday-begin-time-2": "string",
"timeframe-weekly-saturday-end-time-2": "string",
"timeframe-recurrence-type": "string",
"timeframe-recurrence-begin-date": "string",
"timeframe-recurrence-custom-interval": "string",
"timeframe-recurrence-custom-interval-count": "string",
"timeframe-recurrence-custom-interval-option": "string",
"timeframe-recurrence-end-option": "string",
"timeframe-recurrence-end-date": "string"
}
]
}
curl --location -g --request PUT 'https://awqacore01.crexendocloud.com/ns-api/v2/domains/{{domain}}/users/{{user}}/timeframes/HASHHACK5' \
--header 'Content-Type: application/json' \
--data-raw '{
"update-only": "string",
"timeframe-specific-dates-array": [
{
"timeframe-id": "string",
"timeframe-specific-dates-begin-date": "string",
"timeframe-specific-dates-begin-time": "string",
"timeframe-specific-dates-end-date": "string",
"timeframe-specific-dates-end-time": "string",
"timeframe-recurrence-type": "string",
"timeframe-recurrence-custom-interval": "string",
"timeframe-recurrence-custom-interval-count": "string",
"timeframe-recurrence-custom-interval-option": "string",
"timeframe-recurrence-end-option": "string",
"timeframe-recurrence-end-date": "string"
}
],
"timeframe-holiday-array": [
{
"timeframe-id": "string",
"timeframe-holiday-uuid": "string",
"timeframe-holiday-name": "string",
"timeframe-holiday-begin-date": "string",
"country-abbreviation": "string",
"state-province-abbreviation": "string",
"holiday-api-location-hint": "string",
"timeframe-holiday-begin-time-1": "string",
"timeframe-holiday-end-time-1": "string",
"timeframe-holiday-begin-time-2": "string",
"timeframe-holiday-end-time-2": "string",
"timeframe-weekly-monday-observance-option": "string",
"timeframe-weekly-tuesday-observance-option": "string",
"timeframe-weekly-wednesday-observance-option": "string",
"timeframe-weekly-thursday-observance-option": "string",
"timeframe-weekly-friday-observance-option": "string",
"timeframe-weekly-saturday-observance-option": "string",
"timeframe-weekly-sunday-observance-option": "string",
"timeframe-workweek-list": "string",
"timeframe-recurrence-type": "string",
"timeframe-recurrence-end-option": "string",
"timeframe-recurrence-end-date": "string",
"timeframe-expiry-datetime": "string"
}
],
"timeframe-days-of-week-array": [
{
"timeframe-id": "string",
"timeframe-weekly-sunday-begin-time-1": "string",
"timeframe-weekly-sunday-end-time-1": "string",
"timeframe-weekly-sunday-begin-time-2": "string",
"timeframe-weekly-sunday-end-time-2": "string",
"timeframe-weekly-monday-begin-time-1": "string",
"timeframe-weekly-monday-end-time-1": "string",
"timeframe-weekly-monday-begin-time-2": "string",
"timeframe-weekly-monday-end-time-2": "string",
"timeframe-weekly-tuesday-begin-time-1": "string",
"timeframe-weekly-tuesday-end-time-1": "string",
"timeframe-weekly-tuesday-begin-time-2": "string",
"timeframe-weekly-tuesday-end-time-2": "string",
"timeframe-weekly-wednesday-begin-time-1": "string",
"timeframe-weekly-wednesday-end-time-1": "string",
"timeframe-weekly-wednesday-begin-time-2": "string",
"timeframe-weekly-wednesday-end-time-2": "string",
"timeframe-weekly-thursday-begin-time-1": "string",
"timeframe-weekly-thursday-end-time-1": "string",
"timeframe-weekly-thursday-begin-time-2": "string",
"timeframe-weekly-thursday-end-time-2": "string",
"timeframe-weekly-friday-begin-time-1": "string",
"timeframe-weekly-friday-end-time-1": "string",
"timeframe-weekly-friday-begin-time-2": "string",
"timeframe-weekly-friday-end-time-2": "string",
"timeframe-weekly-saturday-begin-time-1": "string",
"timeframe-weekly-saturday-end-time-1": "string",
"timeframe-weekly-saturday-begin-time-2": "string",
"timeframe-weekly-saturday-end-time-2": "string",
"timeframe-recurrence-type": "string",
"timeframe-recurrence-begin-date": "string",
"timeframe-recurrence-custom-interval": "string",
"timeframe-recurrence-custom-interval-count": "string",
"timeframe-recurrence-custom-interval-option": "string",
"timeframe-recurrence-end-option": "string",
"timeframe-recurrence-end-date": "string"
}
]
}'
{}