# tys.fit_groups.create()

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

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

*Method* · `tryyoursize`

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

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

## Parameters

- **`name`** (`str`, required): The group's name.
- **`product_ids`** (`Optional[Iterable[str]]`, optional, default `None`): Products to put in the new group.
- **`source_product_id`** (`Optional[str]`, optional, default `None`): The new group takes over this product's garment versions.
- **`idempotency_key`** (`Optional[str]`, optional, default `None`)

## Returns

`FitGroup`: The fit group.

## Example

**Python**

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

**Node.js**

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

**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

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