update_only
and provide within the array timeframe-holiday-array
the new values for the holidays you intend to update, including in each holiday object the associated timeframe-id
for that holiday. If any holidays 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 Holidays in Holiday Timeframe" - see examples for more information.Authorization: Bearer ********************
{
"update-only": "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"
}
]
}
curl --location -g --request PUT 'https://awqacore01.crexendocloud.com/ns-api/v2/domains/{{domain}}/users/{{user}}/timeframes/HASHHACK3' \
--header 'Content-Type: application/json' \
--data-raw '{
"update-only": "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"
}
]
}'
{}