---
title: "Create Offline Event"
method: POST
path: "/v1/{tenant}/restaurants/event/offline"
tags: ["Restaurant Events", "publicly-accessible"]
---

# Create Offline Event

`POST /v1/{tenant}/restaurants/event/offline`

Creates an event for the specified restaurants that indicates a reason for those restaurants to be offline.

## Path parameters

- `tenant` string, required

## Headers

- `X-JE-Requester` string, required
- `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

- OfflineRestaurantsRequestModel
  - `restaurantIds` string, required — A comma separated list of the IDs of the restaurants to include in the offline event. No limit to the number accepted by the endpoint, but unexpected behaviour mat occur at more than 500 IDs.
  - `name` string, required — Name of the offline event to be created.
  - `reason` string, required — The reason for creating the offline event.
  - `startDate` string, date-time, required — ISO 8601 format of the start datetime of the offline event.
  - `endDate` string, date-time, nullable — ISO 8601 format of the end datetime of the offline event.
  - `duration` string — Either a timespan in the HH:mm format or `untilTomorrow` (this will be the next day at 4:30 am +/- 10 minutes local time). Note if both duration and `endDate` are specified duration takes precedence.
  - `allowRestaurantOverride` boolean, required — Whether a restaurant should be allowed to delete this event, regardless of who raised it.
  - `legacyTempOfflineType` 'Unset' | 'None' | 'TempOffline' | 'ClosedToday' | 'ClosedDueToEvent' | 'FailedJctConnection' | 'NoTrOverride' | 'IgnoredOrders' — - `Unset` : Legacy value meaning online. - `None` : Legacy value meaning online. - `TempOffline` : The restaurant will go temporarily offline, typically for an undetermined amount of time (no end date). - `ClosedToday` : The restaurant will closed for the day and the event will end the next morning. - `ClosedDueToEvent` : The restaurant will go offline for an event (e.g. a holiday), these events will typically have an end time. - `FailedJctConnection` : The restaurant will go offline due to the POS device losing connection. - `NoTrOverride` : The restaurant will go offline for another reason that the restaurant cannot override. - `IgnoredOrders` : The restaurant will go offline due to ignoring orders.
  - `category` string — A free text category used to group multiple events. This field is not intended to be used by clients.

## Response `201`

Created

- object
  - `restaurantEventId` string — The ID of the offline event created
  - `restaurantIds` string — A CSV of the restaurant IDs added to the offline event

## Other responses

- `400` — Bad Request
- `500` — Server Error

---

[API](https://skmtc.net/just-eat/apis/just-eat-api.md) · [All operations](https://skmtc.net/just-eat/apis/just-eat-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/just-eat/just-eat-api/revisions/4b25c7d97a53/schema)
