Create Operating Calendar
Beta/v1/operations/operating-calendarsIdempotent with Idempotency-Key header. Learn more
Creates an operating calendar.
The days govern every ship-by date resolved against this calendar: a plant that tenders freight Monday to Thursday never gets committed to a Friday shipment, and a customer's promised delivery date is worked back from a day they can actually receive on.
A calendar starts with no closures. Add holidays and shutdowns to it separately.
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. At least one day must be open.
cutoff_atoptional stringLocal time freight has to be tendered by, as "15:00". Only a shipping calendar accepts one.
timezoneoptional stringIANA zone the cutoff is read in, such as "America/Chicago". On a receiving calendar, leave it unset to take the zone from the ship-to address.
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 Create Operating Calendar