Create a new family for your active brand. This playground calls the live API and will modify your data.
Create a new family for the active brand.
POST https://api.commerceclarity.com/api/2026-05/families/create| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Required | Family name. |
family_id | string | Required | Brand-unique family key. |
description | string | Optional | Family description. |
is_enabled | boolean | Optional | Whether the family is active. Default true. |
curl -X POST "https://api.commerceclarity.com/api/2026-05/families/create" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{ "name": "Electronics", "family_id": "electronics" }'
{
"status": "success",
"data": {
"_id": "507f1f77bcf86cd799439011",
"name": "Electronics",
"family_id": "electronics",
"description": "Electronic devices and accessories",
"is_enabled": true,
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-01-15T10:30:00Z"
}
}{
"status": "error",
"message": "Validation error",
"errors": {
"family_id": ["The family_id has already been taken."]
}
}