> 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: Attribute Definition

# Type: Attribute Definition Object

# Link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/attributes/attribute-definition/attribute-definition-object.md

## Description: An attribute definition is a typed custom property (string, number, or boolean) that can be
applied to entities. Each definition has a display name shown to end users, a value type,
optional type-specific configuration (such as a list of allowed string values), and a
default value.

Attribute definitions are defined once per site. To set a value for a specific entity,
call Bulk Upsert Attribute Values; to read an entity's values together with their
definitions, call List Entity Attributes.

## Schema:

```json
 Type: Attribute Definition Object | type: AttributeDefinition
 Description: An attribute definition is a typed custom property (string, number, or boolean) that can be
applied to entities. Each definition has a display name shown to end users, a value type,
optional type-specific configuration (such as a list of allowed string values), and a
default value.

Attribute definitions are defined once per site. To set a value for a specific entity,
call Bulk Upsert Attribute Values; to read an entity's values together with their
definitions, call List Entity Attributes.
       - name: id  | type: string | description: Attribute definition ID.
       - name: revision  | type: string | description: Revision number, which increments by 1 each time the attribute definition is updated. To prevent conflicting changes, the current revision must be passed when updating. Ignored when creating an attribute definition.
           - name: value  | type: string | description: 
       - name: createdDate  | type: string | description: Date and time the attribute definition was created.
           - name: seconds  | type: string | description: 
           - name: nanos  | type: number | description: 
       - name: updatedDate  | type: string | description: Date and time the attribute definition was last updated.
       - name: name  | type: string | description: Display name for the attribute, shown to end users (for example, `Capacity`).  Must be unique within the site. Required when creating an attribute definition.
           - name: value  | type: string | description: 
       - name: valueType  | type: string | description: Value type of this attribute. Immutable after creation. `UpdateAttributeDefinition` rejects requests that change `value_type`. Required when creating an attribute definition.
           enum: STRING, NUMBER, BOOL
       - name: visibility  | type: boolean | description: Whether this attribute is shown to end users on the public site.  - `true`: shown in the UI and available for filtering. - `false`: hidden from end users. Back-office admins can still see and edit the attribute.  Default: `true`.
           - name: value  | type: boolean | description: 
       - name: defaultValue  | type: AttributeDefaultValue | description: Default value for the attribute. When a configuration change leaves a stored attribute value out of range or outside the allowed values, that value is reset to this default (see Update Attribute Definition).  The variant must match `valueType`. Required when creating an attribute definition.
           - ONE-OF:
               - name: stringDefault  | type: string | description: Default value for a STRING-type attribute. Must be in StringConfig.allowed_values.
               - name: numberDefault  | type: number | description: Default value for a NUMBER-type attribute. Must be within NumberConfig [min, max].
               - name: boolDefault  | type: boolean | description: Default value for a BOOL-type attribute.
       - name: extendedFields  | type: ExtendedFields | description: Custom field data for the attribute definition. [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: Tags | description: Custom tags for organizing and filtering attribute definitions. Manage tags using `BulkUpdateAttributeDefinitionTags` or `BulkUpdateAttributeDefinitionTagsByFilter`.
           - name: privateTags  | type: TagList | description: Tags that require an additional permission in order to access them, normally not given to site members or visitors.
               - name: tagIds  | type: Array<string> | description: List of tag IDs.
           - name: publicTags  | type: TagList | description: Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors.
       - ONE-OF:
           - name: stringConfig  | type: StringConfig | description: String configuration: the list of allowed string values.
               - name: allowedValues  | type: Array<string> | description: Allowed string values for this attribute. Values can be added, removed, or renamed; on update, any entity value that no longer matches the allowed values is reset to the attribute's default.
           - name: numberConfig  | type: NumberConfig | description: Number configuration: the valid integer range.
               - name: min  | type: number | description: Minimum allowed value (integer).
               - name: max  | type: number | description: Maximum allowed value (integer). Must be greater than or equal to `min`.

```