# Create a taxonomy

`POST https://api.cademi.com.br/api/v3/products/{product_id}/taxonomies`

Operation ID: `taxonomies.create` · API v3

Creates a taxonomy in a product, with a singular `name` and a `plural_name`.

Taxonomies are available only for products in the `blog` format. For other formats, the API returns `409 Conflict` with the `format_unsupported` error code.

Taxonomies cannot be created in replicated products. Attempts to do so return `403 Forbidden` with the `replica_readonly` error code.

Required permissions: `taxonomies.create`.

## Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `product_id` | path | string | yes |  |

## Request body

Content type: `application/json`, required.

| Field | Type | Required | Description |
|---|---|---|---|
| `name` | string | yes |  |
| `plural_name` | string | yes |  |

## Responses

### 201

Returns the newly created taxonomy.

Body: `data`: Taxonomy.

Fields of Taxonomy:

| Field | Type | Required | Description |
|---|---|---|---|
| `created_at` | string (date-time) | yes |  |
| `id` | string | yes | Public ID, with the tax_ prefix. |
| `name` | string | yes |  |
| `object` | string, one of `taxonomy` | yes |  |
| `plural_name` | string | yes |  |
| `product_id` | string | yes | Public ID, with the prd_ prefix. |
| `revision` | string | yes |  |
| `terms_count` | integer | yes |  |
| `updated_at` | string (date-time) | yes |  |

### 401

The credential is missing, malformed, expired, or revoked.

Body: Error.

### 403

The current credentials do not have the permission required by this operation.

Body: Error.

### 404

The product was not found or is not accessible with the current credentials.

Body: Error.

### 409

The product format does not support taxonomies. Returns the format_unsupported error code.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

Full schema: https://cademi.dev/openapi/v3.json
