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

# Type: Branch Object

# Link: https://dev.wix.com/docs/api-reference/business-management/branches/branch-object.md

## Description: A branch is a version of draft site content that can be edited independently. Also known as a test site.

Branches let site owners and developers create isolated versions of a site for testing changes without affecting the live site. Each branch maintains its own content, design, and settings while sharing the same site infrastructure.

Learn more about [branches](https://support.wix.com/en/article/about-test-sites).

## Schema:

```json
 Type: Branch Object | type: Branch
 Description: A branch is a version of draft site content that can be edited independently. Also known as a test site.

Branches let site owners and developers create isolated versions of a site for testing changes without affecting the live site. Each branch maintains its own content, design, and settings while sharing the same site infrastructure.

Learn more about [branches](https://support.wix.com/en/article/about-test-sites).
       - name: id  | type: string | description: Branch ID.
           - name: value  | type: string | description: 
       - name: revision  | type: string | description: Revision number, which increments by 1 each time the branch is updated. To prevent conflicting changes, pass the current revision when updating the branch. If omitted, the update is applied without a revision check.
           - name: value  | type: string | description: 
       - name: type  | type: string | description: Branch type.
           enum: USER, TECHNICAL, ORIGINAL_BRANCH
       - name: name  | type: string | description: Branch name.
       - name: sourceType  | type: string | description: Source type for this branch's content. Must be aligned with the corresponding source properties below.
           enum: SOURCE_BRANCH
       - name: lastPublishDate  | type: string | description: Date and time the branch was last published.
       - name: editorType  | type: EditorType | description: Wix editor type. Provide this field only when the new branch uses a different editor than the branch it was created from, and the branch is not created from a template. Only `STUDIO_TWO` may be provided explicitly; otherwise the editor type is calculated automatically.
           - name: editorTypeOptions  | type: string | description: Wix editor types.
               enum: STUDIO, CLASSIC, HARMONY, STUDIO_TWO
       - name: default  | type: boolean | description: Whether this branch is the default branch. The default branch is used for API operations when no branch ID is specified.
           - name: value  | type: boolean | description: 
       - name: createdDate  | type: string | description: Date and time the branch was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the branch was last updated.
       - name: extendedFields  | type: ExtendedFields | description: Custom field data for the branch. [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md) must be configured in the app dashboard before they can be accessed with API calls.
           - name: namespaces  | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).
       - name: tags  | type: PublicTags | description: Public tags assigned to the branch.
           - name: tags  | type: TagList | description: Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors.
               - name: tagIds  | type: Array<string> | description: List of tag IDs.
       - ONE-OF:
           - name: sourceBranchProperties  | type: SourceBranch | description: Source branch properties. Use when `sourceType` = `SOURCE_BRANCH`.
               - name: branchId  | type: string | description: Source branch ID.
               - name: branchRevision  | type: string | description: Revision number of the source branch when this branch was created. To prevent conflicting changes, the current revision must be passed when updating the branch.
           - name: sourceTemplateProperties  | type: SourceTemplate | description: Source template properties. Use when `sourceType` = `SOURCE_TEMPLATE`.
               - name: templateId  | type: string | description: ID of the source template.

```