> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

# Resource: Area

# Type: Area Object

# Link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/arrivals/area/area-object.md

## Description: An area is a part of a business that pricing plans grant entry into (the main floor, the pool, a cycle
studio), with the entrances clients pass through to get in. Plans are connected to areas: an area is the
Benefit Programs item a pricing plan's benefit names, so which plans are allowed into an area is defined on
the plans' benefits, not on the area. Every entry is recorded against an area and one of its entrances.
An area belongs to a business location. When Arrivals is installed on a site, an area with one entrance (the
default entrance of that location) is created at the site's default location, each with a default name in the site's
language: "Main area" and "Main entrance" in English. The owner can rename them. A site can be installed before
it has a default location, which the Locations API creates once the business info has an address; it then gets no
area at install, and the dashboard's setup asks for a location and creates the first area. Other areas are
created with Create Area.

An area's `policy` holds what the owner configures about entering it (whether a booked scheduled event admits
a client, with its entry window, and the intake forms a client must have on file) and nothing about a single
entry: whether a human is present to decide is a property of the scan, not of the area.

An area is archived to close it, or deleted. Either way, while Pricing Plans is enabled on the site, it is removed
from its plans, and unarchiving does not put it back. Past arrivals keep the area's ID and name either way.

## Schema:

```json
 Type: Area Object | type: Area
 Description: An area is a part of a business that pricing plans grant entry into (the main floor, the pool, a cycle
studio), with the entrances clients pass through to get in. Plans are connected to areas: an area is the
Benefit Programs item a pricing plan's benefit names, so which plans are allowed into an area is defined on
the plans' benefits, not on the area. Every entry is recorded against an area and one of its entrances.
An area belongs to a business location. When Arrivals is installed on a site, an area with one entrance (the
default entrance of that location) is created at the site's default location, each with a default name in the site's
language: "Main area" and "Main entrance" in English. The owner can rename them. A site can be installed before
it has a default location, which the Locations API creates once the business info has an address; it then gets no
area at install, and the dashboard's setup asks for a location and creates the first area. Other areas are
created with Create Area.

An area's `policy` holds what the owner configures about entering it (whether a booked scheduled event admits
a client, with its entry window, and the intake forms a client must have on file) and nothing about a single
entry: whether a human is present to decide is a property of the scan, not of the area.

An area is archived to close it, or deleted. Either way, while Pricing Plans is enabled on the site, it is removed
from its plans, and unarchiving does not put it back. Past arrivals keep the area's ID and name either way.
       - name: id  | type: string | description: Area ID. Stable for the lifetime of the site and never reused, neither after the area is archived nor after it is deleted. It is also the ID of the Benefit Programs item that stands for the area on a plan's benefit.
           - name: value  | type: string | description: 
       - name: revision  | type: string | description: Revision number, which increments by 1 each time the area is updated. To prevent conflicting changes, the current revision must be passed when updating the area.  Ignored when creating an area.
           - name: value  | type: string | description: 
       - name: createdDate  | type: string | description: Date and time the area was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the area was updated.
       - name: name  | type: string | description: Area name, in the business owner's own words. For example, `Main area` or `Pool`. Site collaborators see it on every scan, and it is the name of the area's Benefit Programs item on a plan.
       - name: locationId  | type: string | description: ID of the business location this area belongs to, from the Locations API. Every area belongs to one. It must be a location of the site: an unknown ID fails with `LOCATION_NOT_FOUND`. To move an area to another location, change it with [Update Area](https://dev.wix.com/docs/api-reference/business-solutions/bookings/arrivals/area/update-area.md).
       - name: status  | type: string | description: Whether the area is active or archived. Changes only through [Archive Area](https://dev.wix.com/docs/api-reference/business-solutions/bookings/arrivals/area/archive-area.md) and [Unarchive Area](https://dev.wix.com/docs/api-reference/business-solutions/bookings/arrivals/area/unarchive-area.md).
           enum: ACTIVE, ARCHIVED
       - name: entrances  | type: Array<Entrance> | description: The entrances clients get into the area through: a door, a turnstile, a gate or a front desk. An area has at least one. Site collaborators pick the entrance they are standing at once per scanning position, and every arrival records it. One or more devices can be paired to an entrance; each scan names the entrance, not the device. Managed through Update Area: send the whole list, which replaces the current one. An entrance keeps its `id` for as long as it is in the list; a removed entrance disappears from the scanner, and past arrivals keep its ID and name.
           - name: id  | type: string | description: Entrance ID. Assigned by the server when the entrance is first sent on Create Area or Update Area, and kept while the entrance stays in the list. Send it back on Update Area to keep an existing entrance; an entrance sent without an ID is new, and an ID that is not one of the area's current entrances, or appears more than once, fails with `ENTRANCE_NOT_FOUND`. Ignored on Create Area. Arrivals record the entrance they were written at by this ID.
           - name: name  | type: string | description: Entrance name, in the business owner's own words. For example, `Main entrance` or `Pool gate`. Site collaborators see it when they pick where they stand.
           - name: defaultEntrance  | type: boolean | description: Whether this entrance is the default entrance of its area's location, the one a scanner at that location preselects. A location has at most one across its areas, and can have none. Rarely, when two changes at one location happen at once, two entrances there can both be marked until a default is next marked; a client should then preselect the first one it finds. Mark it on Create Area or Update Area; the server sets and clears it as areas are created, updated, archived, unarchived and deleted, as each method describes and the introduction's Default entrances section sums up. Marking more than one in a request fails with `MULTIPLE_DEFAULT_ENTRANCES`. An archived area's entrances are never the default. It only tells a client app which entrance to preselect; every arrival names its entrance.  Default: `false`
       - name: policy  | type: EntryPolicy | description: What the owner requires of a client to enter this area: whether a booked scheduled event admits them, with its entry window, and the intake forms a client must have on file. Always set on a returned area. An area created without a policy gets one where scheduled events do not admit and no form is required.
           - name: scheduledEventsPolicy  | type: ScheduledEventsPolicy | description: Which scheduled events the client is booked into admit them, and when. Off by default: an area created without it, or before it existed, decides entry on pricing plans and intake forms only, and turning it on is an explicit change by the owner.
               - name: entryGrantingAppIds  | type: Array<string> | description: App IDs of the apps whose scheduled events grant entry to a client booked into them at the area's location. For example, Wix Bookings' app ID for its classes and appointments. A booked event of a listed app admits the client inside `entryWindow`, and nothing is redeemed for it; an event of an app not listed is not read. Empty, the default: scheduled events are not read at all, and the client is evaluated on their pricing plans and intake forms only. A non-empty list requires `entryWindow`. App IDs are not checked against the apps installed on the site; an ID of an app that isn't installed is stored and grants nothing until the app is installed.
               - name: entryWindow  | type: EntryWindow | description: When a client booked on a scheduled event may enter on it: how long before the event's start entry opens, and how long after the start it closes. A scheduled event outside its window does not admit; the client is then evaluated on their plans. The window is measured from the event's start, never its end. Required when `entryGrantingAppIds` is not empty, with both of its values; setting `entryGrantingAppIds` without it fails with `ENTRY_WINDOW_REQUIRED`, and a window with both values `0` fails with `EMPTY_ENTRY_WINDOW`. Ignored while `entryGrantingAppIds` is empty. There is no default on the server: a client that offers one pre-fills it, for example from the site's Self Check-in window.
           - name: intakeForms  | type: Array<IntakeForm> | description: The intake forms a client must have a valid submission for to enter the area. They're the same forms, and the same submissions, a Bookings booking policy requires: one signature counts for both. Each form is required independently, and each says what happens when it is missing: a pool can block entry on an unsigned swim waiver while only warning about an unsigned consent form. When several are missing, one that blocks entry decides. Each form ID appears at most once; a repeat fails with `DUPLICATE_INTAKE_FORM`. Empty: no intake form is required.  Intake forms are validated and stored, but they aren't checked at entry yet: a client without a submission is evaluated on their plans and scheduled events as if no form were listed.
               - name: formId  | type: string | description: ID of the intake form, from the Intake Forms API. It's the same ID a booking policy's intake form policy holds. Whether a submission is still valid, and how often it must be renewed, is defined on the form. It must be an intake form of the site that is not archived, and the Intake Forms app must be installed: otherwise Create Area and Update Area fail with `INTAKE_FORM_NOT_FOUND` (`INVALID_ARGUMENT`), or with `INTAKE_FORM_ARCHIVED` or `INTAKE_FORM_APP_NOT_INSTALLED` (`FAILED_PRECONDITION`).
               - name: blocksEntry  | type: boolean | description: Whether the area refuses entry while the client has no valid submission for the form. `false`, the default and the recommended setting: the client is let in and site collaborators are told about the missing form. `true`: entry is blocked until the form is submitted; site collaborators can still override at the desk.  Stored, but not checked at entry yet.  Default: `false`

```