Update Operating Calendar
Beta/v1/operations/operating-calendars/{id}Idempotent with Idempotency-Key header. Learn more
Updates an operating calendar.
A calendar's kind cannot change: a shipping calendar that became a receiving one would silently drop the pickup cutoff every commitment resolved against it depends on. Create a second calendar instead.
Changes apply to commitments made from now on. Orders already issued keep the dates they were stamped with, so adding a holiday never retroactively makes a past order late.
idstringOperating calendar ID.
nameoptional stringHuman-readable name.
days_of_weekoptional stringOpen weekdays as seven characters of '0' or '1', Monday first. At least one day must be open.
cutoff_atoptional stringnullableLocal time freight has to be tendered by. Clearing it leaves the ship-by date a day with no time of day attached. Send null to clear.
timezoneoptional stringnullableIANA zone the cutoff is read in. Clearing it on a receiving calendar returns to taking the zone from the ship-to address. Send null to clear.
is_defaultoptional booleanMake this the calendar used when nothing more specific is linked. Setting it demotes whichever calendar of the same kind held the role.
objectstringenumValues:operating_calendarResource type identifier.
idstringUnique identifier.
codestringShort stable identifier, unique per account.
namestringHuman-readable name.
kindstringenumValues:shipreceiveWhich side of a shipment this calendar describes.
days_of_weekstringOpen weekdays as seven characters of '0' or '1', Monday first. "1111100" is Monday to Friday; "1111000" is a Monday-to-Thursday plant.
cutoff_atstringnullableLocal time freight has to be tendered by, as "15:00". Only a shipping calendar carries one.
timezonestringnullableIANA zone the cutoff is read in. Null on a receiving calendar means it is taken from the ship-to address.
is_defaultbooleanWhether this is the calendar used when nothing more specific is linked. Exactly one per kind.
created_atstring (date-time)Creation timestamp.
updated_atstring (date-time)Last updated timestamp.
Responses
Successful response for Update Operating Calendar