---
title: "POST /api/v1/analyze/text-unit-classifications/"
method: POST
path: "/api/v1/analyze/text-unit-classifications/"
tags: ["analyze", "v1"]
---

# POST /api/v1/analyze/text-unit-classifications/

`POST /api/v1/analyze/text-unit-classifications/`

Create Text Unit Classification

## Request body

- TextUnitClassificationCreate
  - `pk` integer
  - `class_name` string, required
  - `class_value` string, required
  - `text_unit_id` integer, required
  - `user_id` integer

## Response `201`

- TextUnitClassificationCreate
  - `pk` integer
  - `class_name` string, required
  - `class_value` string, required
  - `text_unit_id` integer, required
  - `user_id` integer

## Changes

- **2021-05-24** `8167164be9cc` — 1 breaking
  - the `user_id` response's property type/format changed from `string`/`` to `integer`/`` for status `201`
- **2020-12-11** `0957c4a7ae3d` — 1 breaking
  - the `user_id` response's property type/format changed from `integer`/`` to `string`/`` for status `201`

[Change history](https://skmtc.dev/lexpredict/apis/contraxsuite-api/changes/api/v1/analyze/text-unit-classifications/post.md)

---

[API](https://skmtc.dev/lexpredict/apis/contraxsuite-api.md) · [All operations](https://skmtc.dev/lexpredict/apis/contraxsuite-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/lexpredict/contraxsuite-api/revisions/3429f921b4cb/schema)
