Restaurant Events
publicly-accessible
Create Offline Event
Changed onCreates an event for the specified restaurants that indicates a reason for those restaurants to be offline.
post/v1/{tenant}/restaurants/event/offline
Request
- Base URLhttps://uk.api.just-eat.io
- Authnone declared. Required headers: X-JE-Requester, X-JE-User-Role
- TypeScriptA function with typed inputs. Its response is checked against the schema.
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
{
"restaurantIds": "12345",
"name": "Out of Chicken",
"reason": "No more chicken in stock.",
"startDate": "2020-01-16T09:00:00Z",
"duration": "1:00:00",
"allowRestaurantOverride": true
}Response
Created
Example response
{
"restaurantIds": "12345",
"restaurantEventId": "03bff206-d136-405f-b789-95190e9711a4"
}Changes
- breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - breaking
the response property
/became nullable for the status - info
the request property
became nullable
- breaking