POST /admin/compliance/data-classifications
Create a data classification rule (e.g., PII / Sensitive / Internal)
Compliance Management - Data Classification `bearerAuth` application/json
Request Body
Schema: dto.DataClassificationRequest
| Field | Type | Required | Example | Constraints | Description |
classification |
string |
Yes |
confidential |
|
|
data_category |
string |
Yes |
User profile |
|
|
description |
string |
No |
Includes name, address, contact information, etc. |
|
|
retention_required |
boolean |
No |
True |
|
|
Referenced Schemas
dto.DataClassificationItemResponse
dto.DataClassificationResponse
| Field | Type | Required | Example | Constraints | Description |
classification |
string |
No |
confidential |
|
|
created_at |
string |
No |
2026-05-01T10:00:00Z |
|
|
data_category |
string |
No |
User Personal Data |
|
|
description |
string |
No |
Contains name, address, contact info |
|
|
id |
string |
No |
01JQ... |
|
|
retention_required |
boolean |
No |
True |
|
|
dto.ErrorResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
400 |
|
|
message |
string |
No |
invalid request |
|
|