# Create a taxonomy term

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

Operation ID: `taxonomies.terms.create` · API v3

Creates a term in a taxonomy. Requires the `taxonomies.update` permission.

The optional `image` field accepts the ID of a file previously uploaded to the account.

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

Required permissions: `taxonomies.update`.

## Parameters

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

## Request body

Content type: `application/json`, required.

| Field | Type | Required | Description |
|---|---|---|---|
| `image` | string or null | no |  |
| `name` | string | yes |  |

## Responses

### 201

Returns the newly created term.

Body: `data`: TaxonomyTerm.

Fields of TaxonomyTerm:

| Field | Type | Required | Description |
|---|---|---|---|
| `created_at` | string (date-time) | yes |  |
| `id` | string | yes | Public ID, with the ttm_ prefix. |
| `image` | string or null | yes |  |
| `lessons_count` | integer | yes |  |
| `name` | string | yes |  |
| `object` | string, one of `taxonomy_term` | yes |  |
| `revision` | string | yes |  |
| `taxonomy_id` | string | yes | Public ID, with the tax_ prefix. |
| `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 taxonomy was not found in this product or is not accessible with the current credentials.

Body: Error.

### 422

The request body or query parameters failed validation.

Body: ValidationFailed.

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