# tys.fitGroups.create()

> tys.fitGroups.create()

Source: https://docs.tryyoursize.com/reference/node/fit-groups-create/

*Method* · `@tryyoursize/node`

```ts
create(input: FitGroupInput, options?: RequestOptions): Promise<FitGroup>
```

## Parameters

- **`input`** (`FitGroupInput`, required)
  - **`name`** (`string`, required)
  - **`product_ids`** (`string[]`, optional): Products to put in the new group (create only).
  - **`source_product_id`** (`string`, optional): "Use the garment of…": the new group takes over this product's garment versions (create only).
- **`options`** (`RequestOptions`, optional)

## Returns

`Promise<FitGroup>`: The fit group.

## Example

**Node.js**

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

**Python**

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

**cURL**

```bash
curl -X POST https://api.tryyoursize.com/v1/fit_groups \
  -H "Authorization: Bearer $TRYYOURSIZE_SECRET_KEY" \
  -H "TYS-Version: 2026-10-25" \
  -H "Content-Type: application/json" \
  -d '{"name":"Basic tee","product_ids":["<product_id>","<product_id>"]}'
```

## See also

- [fitGroups.create (HTTP API)](https://docs.tryyoursize.com/api/reference/operations/createcatalogfitgroup.md)
