/admin/compliance/profile
创建或更新租户的合规配置
Request Body
Schema: dto.UpsertComplianceProfileRequest
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
ai_review_required |
boolean |
No | False |
||
auto_delete_enabled |
boolean |
No | |||
breach_report_threshold |
integer |
No | 1 |
||
consent_ttl_years |
integer |
No | 1 |
||
data_protection_officer |
string |
No | dpo@example.com |
||
default_retention_days |
integer |
No | 365 |
||
enabled_frameworks |
array of string |
No | ['["gdpr"', '"iso27001"', '"sox"]'] |
||
max_concurrent_erasures |
integer |
No | 10 |
||
pen_test_schedule_days |
integer |
No | 365 |
||
score_weights |
string |
No | {"iso27001":0.25,"soc2":0.15,"gdpr":0.15,"issues":0.25,"pen_test":0.10,"breach":0.10} |
||
selected_standards |
array of string |
No | ['["pci_dss_v4"', '"dengbao_l3"]'] |
||
sod_auto_init_enabled |
boolean |
No | True |
Responses
| Status | Description | Schema |
|---|---|---|
| 200 | success | dto.ComplianceProfileResponse |
| 400 | bad request | dto.ErrorResponse |
Referenced Schemas
dto.ComplianceProfileResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
ai_review_required |
boolean |
No | False |
||
auto_delete_enabled |
boolean |
No | True |
||
breach_report_threshold |
integer |
No | 1 |
||
consent_ttl_years |
integer |
No | 1 |
||
data_protection_officer |
string |
No | dpo@example.com |
||
default_retention_days |
integer |
No | 365 |
||
enabled_frameworks |
array of string |
No | ['["gdpr"', '"iso27001"', '"sox"]'] |
||
max_concurrent_erasures |
integer |
No | 10 |
||
pen_test_schedule_days |
integer |
No | 365 |
||
score_weights |
string |
No | {"iso27001":0.25,"soc2":0.15,"gdpr":0.15,"issues":0.25,"pen_test":0.10,"breach":0.10} |
||
selected_standards |
array of string |
No | ['["pci_dss_v4"', '"dengbao_l3"]'] |
||
sod_auto_init_enabled |
boolean |
No | True |
||
tenant_id |
string |
No | 01JQ... |
dto.ErrorResponse
| Field | Type | Required | Example | Constraints | Description |
|---|---|---|---|---|---|
code |
integer |
No | 400 |
||
message |
string |
No | invalid request |