Save your wardrobe booking apis
  1. Getting Started
Save your wardrobe booking apis
  • Customer booking
    • Getting Started
      • Introduction
      • Authentication
      • Attribute groups
    • Authentication
      • Customer login
      • Customer signup
    • categories
      • Get providers
      • Get clothes categories
    • services
      • Get services
    • Upload photos
      • Uplaod photos
    • shoppingCart
      • Create A New Shopping Cart
      • Add items to Shopping Cart
      • Add customer to Shopping Cart
      • Delete Item From Shopping Cart
      • Get Available Logistics Options
      • Add Logistic Option To Shopping Cart
    • order
      • Create the Order from the Shopping Cart
      • List Orders
  • Schemas
    • attributesGroup
    • currency
    • translatedString
    • metadata
    • shoppingCart
    • item
    • item Copy
    • order
  1. Getting Started

Attribute groups

An attribute group is a collection of attributes used to dynamically generate forms in the frontend. Each attribute represents a component of the form and defines how user input is collected and validated. Some endpoinds will return attributes groups that needs to be processed by the frontend to display the form field and get user inputs.

Types of Attribute Groups#

The different types of attributes that can be included in an attribute group are:
text – Single-line text input
textArea – Multi-line text input
number – Numeric input
date – Date selection
select – Dropdown selection
multiSelect – Multiple option selection
checkbox – Boolean checkbox
radio – Radio button group
file – File upload

Metadata and Validation#

Each attribute in a group has a metadata field, whose format depends on the attribute type. Metadata is used for:
Defining the display properties of the attribute
Applying validation rules to ensure correct user input
Parent-Child Attribute Dependencies
Attributes can have a parent attribute, which is used to establish dependencies between attributes and user responses.
Example:
If a radio button has options Yes and No, selecting No might trigger an additional follow-up question (e.g., "Please specify why").
In this case, the follow-up question (Attribute 2) will have:
A parent ID referencing the initial question (Attribute 1)
A parent value equal to the ID of the No response
This dependency structure allows for dynamic form behavior based on user input.

Usage of Attribute Groups#

Attribute groups are used in two main contexts:
Attributes linked to sub clothes categories
These attributes are associated with the item itself.
Example: Size, color, material, etc.
Attributes linked to services
These attributes define service-related details.
Example: For an alteration service like shortening a hem, the attribute might specify the length to be shortened in centimeters.
Previous
Authentication
Next
Customer login
Built with