> 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: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/business-management/locations/introduction.md

## Article Content:

# About the Locations API

With the Locations API, Wix users can define multiple physical locations for their business. This allows them to set individual opening hours for each location.

The Locations API allows you to:

* [List](https://dev.wix.com/docs/rest/business-management/locations/list-locations.md) existing locations.
* [Create](https://dev.wix.com/docs/rest/business-management/locations/create-location.md), [update](https://dev.wix.com/docs/rest/business-management/locations/update-location.md), and [archive](https://dev.wix.com/docs/rest/business-management/locations/archive-location.md) locations.
* [Set a default location](https://dev.wix.com/docs/rest/business-management/locations/set-default-location.md) that is reflected in the site properties.

Read more about how Wix users can manage their [location specific bookings](https://support.wix.com/en/article/wix-bookings-offering-services-at-multiple-locations). You can also read more about how to retrieve the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties.md).


## Use cases
- [Set up a new main business location](https://dev.wix.com/docs/rest/business-management/locations/example-flow.md)

## Before you begin
It’s important to note the following before starting to code:

+ Locations can't be deleted. Instead, you can archive a location using [Archive Location](https://dev.wix.com/docs/rest/business-management/locations/archive-location.md). Archiving is permanent; archived locations can't be unarchived.
+ The default location can't be archived.
+ The [Update Location](https://dev.wix.com/docs/rest/business-management/locations/update-location.md) method completely overrides an existing location. Currently, you can't partially update a location.
+ Currently, the location type is just informational and doesn't affect a location's functionality.
+ The `INACTIVE` location status isn't currently supported.
+ The [Wix Bookings API](https://dev.wix.com/docs/rest/business-solutions/bookings/about-wix-bookings.md) doesn't support the `businessSchedule` object.

## Terminology

+ **Default location:** Location reflected in the [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties.md). This location is used on invoices.
+ **Type:** Describes whether a location is an office, reception, branch or the headquarters.
+ **Status:** Indicates whether a location is `"ACTIVE"` or `"INACTIVE"`.
+ **Business Schedule:** Describes the location's regular and exceptional opening hours.
    - **Period:** Regular, weekly opening hours of the location.
    - **Special Hour Period:** Exception to the location's regular hours. The location can be either open or closed during the **Special Hour Period**.

