Create Operating Calendar Closure

Beta
POST/v1/operations/operating-calendars/{id}/closures

Idempotent with Idempotency-Key header. Learn more

Closes a calendar on a date.

Every ship-by date resolved against this calendar afterwards walks past the closure: a carrier that does not move on Thanksgiving pushes the day an order has to leave earlier, and a plant shutdown does the same.

Closing the same date twice is a no-op rather than an error, so re-seeding a year is safe and never renames a closure somebody has relabelled.

Permissions requiredValues:production_schedules:update
The role behind your API key or agent must grant every one of these permissions.
idstring

Operating calendar ID.

closed_onstring (date-time)

The date nothing operates. Truncated to a day.

namestring

What the closure is, such as "Thanksgiving Day" or "Summer shutdown".

objectstringenumValues:operating_calendar_closure

Resource type identifier.

idstring

Unique identifier.

operating_calendar_idstring

The calendar this closure belongs to.

closed_onstring (date-time)

The date nothing operates.

namestring

What the closure is, such as "Thanksgiving Day" or "Summer shutdown".

created_atstring (date-time)

Creation timestamp.

updated_atstring (date-time)

Last updated timestamp.

Responses

201

Successful response for Create Operating Calendar Closure