v1
latestOpenAPI 3.0.02026-07-1498671635.3 KBRestaurant Events
publicly-accessible
Create Offline Event
Creates an event for the specified restaurants that indicates a reason for those restaurants to be offline.
post/v1/{tenant}/restaurants/event/offline
Path parameters
tenantstring required
The identifier for the tenant
Headers
X-JE-Requesterstring required
Name of the user or system creating the event. Used for auditing purposes
X-JE-User-Role'System' | 'Operations' | 'Restaurant' required
- System : Role for an automated process action.
- Operations : Role for an operations user action.
- Restaurant : Role for a restaurant owner/employee user action.
Request body
Example request
{
"allowRestaurantOverride": true,
"duration": "1:00:00",
"name": "Out of Chicken",
"reason": "No more chicken in stock.",
"restaurantIds": "12345",
"startDate": "2020-01-16T09:00:00Z"
}Response
Created
Example response
{
"restaurantEventId": "03bff206-d136-405f-b789-95190e9711a4",
"restaurantIds": "12345"
}