API Playground

Update an existing family. This playground calls the live API and will modify your data.

Authentication Required

You need to Login to test the API playground

Update family

Update an existing family by id. Send only the fields you want to change.

Endpoint URL
PUT https://api.commerceclarity.com/api/2026-05/families/update/{id}

Path Parameters

ParameterTypeRequiredDescription
idstringRequiredThe family's family_id or Mongo _id.

Body parameters

ParameterTypeRequiredDescription
namestringOptionalNew family name.
descriptionstringOptionalNew description.
is_enabledbooleanOptionalEnable/disable the family.

Request Examples

curl -X PUT "https://api.commerceclarity.com/api/2026-05/families/update/electronics" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "name": "Consumer Electronics" }'

Response Example

Success Response
{
  "status": "success",
  "data": {
    "_id": "507f1f77bcf86cd799439011",
    "name": "Consumer Electronics",
    "family_id": "electronics",
    "is_enabled": true,
    "updated_at": "2026-01-15T11:00:00Z"
  }
}
Error Response - Validation
{
  "status": "error",
  "message": "Family not found"
}