action just_eat_post_v1_tenant_restaurants_event_offline { label: "Create Offline Event" description: "Creates an event for the specified restaurants that indicates a reason for those restaurants to be offline." provider: just_eat method: POST path: "/v1/{tenant}/restaurants/event/offline" encoding: json input: { type: "object" properties: { "X-JE-Requester": { type: "string" } "X-JE-User-Role": { type: "string" description: "\n- `System` : Role for an automated process action.\n- `Operations` : Role for an operations user action.\n- `Restaurant` : Role for a restaurant owner/employee user action." enum: ["System", "Operations", "Restaurant"] } allowRestaurantOverride: { type: "boolean" description: "Whether a restaurant should be allowed to delete this event, regardless of who raised it." } category: { type: "string" description: "A free text category used to group multiple events. This field is not intended to be used by clients." } duration: { type: "string" description: "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." } endDate: { type: "string" format: "date-time" description: "ISO 8601 format of the end datetime of the offline event." } legacyTempOfflineType: { type: "string" description: "\n- `Unset` : Legacy value meaning online.\n- `None` : Legacy value meaning online.\n- `TempOffline` : The restaurant will go temporarily offline, typically for an undetermined amount of time (no end date).\n- `ClosedToday` : The restaurant will closed for the day and the event will end the next morning.\n- `ClosedDueToEvent` : The restaurant will go offline for an event (e.g. a holiday), these events will typically have an end time.\n- `FailedJctConnection` : The restaurant will go offline due to the POS device losing connection.\n- `NoTrOverride` : The restaurant will go offline for another reason that the restaurant cannot override.\n- `IgnoredOrders` : The restaurant will go offline due to ignoring orders." enum: ["Unset", "None", "TempOffline", "ClosedToday", "ClosedDueToEvent", "FailedJctConnection", "NoTrOverride", "IgnoredOrders"] } name: { type: "string" description: "Name of the offline event to be created." } reason: { type: "string" description: "The reason for creating the offline event." } restaurantIds: { type: "string" description: "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." } startDate: { type: "string" format: "date-time" description: "ISO 8601 format of the start datetime of the offline event." } tenant: { type: "string" } } required: ["X-JE-Requester", "X-JE-User-Role", "allowRestaurantOverride", "name", "reason", "restaurantIds", "startDate", "tenant"] additionalProperties: false } output: { type: "object" properties: { restaurantEventId: { type: "string" description: "The ID of the offline event created" } restaurantIds: { type: "string" description: "A CSV of the restaurant IDs added to the offline event" } } } }