Skip to content

tys.fit_groups.create()

Methodtryyoursize

Create a fit group: one garment shared by several products (colourways, prints).

def create(*, name: str, product_ids: Optional[Iterable[str]] = None, source_product_id: Optional[str] = None, idempotency_key: Optional[str] = None) -> FitGroup
namestrRequired

The group's name.

product_idsOptional[Iterable[str]]Optional= None

Products to put in the new group.

source_product_idOptional[str]Optional= None

The new group takes over this product's garment versions.

idempotency_keyOptional[str]Optional= None

FitGroup: The fit group.

group = tys.fit_groups.create(name="Basic tee", product_ids=[navy["id"], black["id"]])

Was this page helpful?