/admin/compliance/gdpr/right-to-erasure/{id}
更新删除权请求的处理状态
Request Parameters
| Name | In | Type | Required | Default | Example | Constraints | Description |
|---|---|---|---|---|---|---|---|
id |
path |
string |
Yes | erasure ID |
Request Body
Schema: dto.UpdateErasureRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
status |
string |
Yes | completed |
enum: `pending`, `processing`, `completed`, `rejected` | 新状态 |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | success | dto.ErasureItemResponse |
| 400 | bad request | dto.ErrorResponse |
Referenced Schemas
dto.ErasureItem
数据删除请求记录
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
completed_at |
string |
No | 2026-04-20T14:00:00Z |
完成时间 | |
created_at |
string |
No | 2026-04-15T10:00:00Z |
创建时间 | |
data_categories |
array of string |
No | ['["profile"', '"history"]'] |
数据类别 | |
id |
string |
No | erasure_001 |
删除请求ID | |
reason |
string |
No | 账户不再使用 |
删除原因 | |
status |
string |
No | processing |
状态 | |
user_id |
string |
No | usr_abc123 |
用户ID |
dto.ErasureItemResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | |||
data |
dto.ErasureItem |
No | |||
message |
string |
No | |||
timestamp |
string |
No |
dto.ErrorResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | 400 |
||
message |
string |
No | invalid request |