Skip to content

tys.fitGroups.create()

Method@tryyoursize/node

create(input: FitGroupInput, options?: RequestOptions): Promise<FitGroup>
inputFitGroupInputRequired
Properties
namestringRequired
product_idsstring[]Optional

Products to put in the new group (create only).

source_product_idstringOptional

"Use the garment of…": the new group takes over this product's garment versions (create only).

optionsRequestOptionsOptional

Promise<FitGroup>: The fit group.

const group = await tys.fitGroups.create({
name: "Basic tee",
product_ids: [navy.id, black.id], // colourways that share one garment
});

Was this page helpful?