POST /admin/compliance/cleanup-records
Create a history record of data purging (expired data deletion)
Compliance Management - Data Purging `bearerAuth` application/json
Request Body
Schema: dto.CreateCleanupRecordRequest
| Field | Type | Required | Example | Constraints | Description |
date_range |
string |
Yes |
2024-01-01 to 2025-12-31 |
|
|
operator_id |
string |
Yes |
usr_admin_001 |
|
|
reason |
string |
Yes |
Retention policy expired |
|
|
records_count |
integer |
Yes |
1500 |
|
|
Referenced Schemas
dto.CleanupRecordResponse
| Field | Type | Required | Example | Constraints | Description |
created_at |
string |
No |
2026-05-01T10:00:00Z |
|
|
date_range |
string |
No |
2024-01-01 to 2025-12-31 |
|
|
id |
string |
No |
01JQ... |
|
|
operator_id |
string |
No |
usr_admin_001 |
|
|
reason |
string |
No |
Retention policy expired |
|
|
records_count |
integer |
No |
1500 |
|
|
dto.ErrorResponse
| Field | Type | Required | Example | Constraints | Description |
code |
integer |
No |
400 |
|
|
message |
string |
No |
invalid request |
|
|