> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a Classification

> Create a classification system for organizing tags with mutually exclusive or multi-select behavior to categorize data assets for governance using the Collate REST API.

# Create a Classification

Create a new classification for organizing tags into categories.

## Body Parameters

**name** `string` *required*

Name of the classification. Must be unique.

**displayName** `string`

Human-readable display name for the classification.

**description** `string`

Description of the classification in Markdown format.

**mutuallyExclusive** `boolean` (default: false)

If `true`, only one tag from this classification can be applied to an entity at a time.

**owners** `array`

Array of owner references (users or teams) to assign to the classification.

**properties**

**id** `string`

UUID of the owner entity.

**type** `string`

Type of owner entity, for example `user`, `team`.

**name** `string`

Name of the owner entity.

**provider** `string`

Provider of the classification: `user` (custom) or `system` (built-in).

```python POST /v1/classifications theme={null}
from metadata.sdk import configure
from metadata.sdk.entities import Classifications
from metadata.generated.schema.api.classification.createClassification import CreateClassificationRequest

configure(
    host="https://your-company.getcollate.io/api",
    jwt_token="your-jwt-token"
)

request = CreateClassificationRequest(
    name="Certification",
    description="Certifying Data Asset will provide the users with a clear idea of...",
    mutuallyExclusive=True
)

classification = Classifications.create(request)
print(f"Created: {classification.fullyQualifiedName.root}")
```

```java POST /v1/classifications theme={null}
import org.openmetadata.schema.api.classification.CreateClassification;

// client is an initialized OpenMetadataClient.
var request = new CreateClassification()
    .withName("Certification")
    .withDescription("Certifying Data Asset will provide the users with a clear idea of...")
    .withMutuallyExclusive(true);

var classification = client.classifications().create(request);
```

```bash POST /v1/classifications theme={null}
curl -X POST "{base_url}/api/v1/classifications" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Certification",
    "description": "Certifying Data Asset will provide the users with a clear idea of...",
    "mutuallyExclusive": true,
    "owners": []
  }'
```

```json Response theme={null}
{
  "id": "06d90883-6be9-4f7e-9475-753f10a95e94",
  "name": "Certification",
  "fullyQualifiedName": "Certification",
  "description": "Certifying Data Asset will provide the users with a clear idea of...",
  "version": 0.1,
  "updatedAt": 1769982619610,
  "updatedBy": "admin",
  "deleted": false,
  "owners": [],
  "provider": "system",
  "mutuallyExclusive": true
}
```

***

## Returns

Returns the created classification object with all specified properties and system-generated fields.

## Response

**id** `string`

Unique identifier for the classification (UUID format).

**name** `string`

Classification name.

**fullyQualifiedName** `string`

Fully qualified name of the classification.

**displayName** `string`

Human-readable display name.

**description** `string`

Description of the classification in Markdown format.

**mutuallyExclusive** `boolean`

Whether tags in this classification are mutually exclusive.

**provider** `string`

Provider of the classification: `user` or `system`.

**owners** `array`

List of owners assigned to the classification.

**version** `number`

Version number for the entity (starts at 0.1).

***

## Create or Update (PUT)

Use `PUT /v1/classifications` instead of `POST` to perform an upsert. If a classification with the same `fullyQualifiedName` already exists, it will be updated; otherwise, a new classification is created. The request body is the same as `POST`.

```bash theme={null}
curl -X PUT "{base_url}/api/v1/classifications" \
  -H "Authorization: Bearer {access_token}" \
  -H "Content-Type: application/json" \
  -d '{ ... same body as POST ... }'
```

> [!NOTE]
>
> `PUT` will not return a `409` conflict error if the entity already exists -- it will update the existing entity instead. However, for certain fields (such as description, tags, owners, and custom properties), `PUT` preserves an already-populated value instead of overwriting it with an empty or omitted one -- the exact behavior depends on the field and the calling user or bot's permissions, not a blanket rule. See [Entity Update Behavior](https://docs.getcollate.io/api-reference/entity-updates.md) for the full preserve/merge rules. Use `PATCH` to intentionally replace an existing value.

***

## Error Handling

| Code | Error Type | Description |
| - | - | - |
| `400` | `BAD_REQUEST` | Invalid request body or missing required fields |
| `401` | `UNAUTHORIZED` | Invalid or missing authentication token |
| `403` | `FORBIDDEN` | User lacks permission to create classifications |
| `409` | `ENTITY_ALREADY_EXISTS` | Classification with same name already exists (POST only) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.