POST /admin/tenants/{tenant_id}/webhooks/{hook_id}/rotate-secret
生成新的 Webhook 签名密钥,旧密钥立即失效
租户服务 `bearerAuth` application/json
请求参数
| 名称 | 位置 | 类型 | 必填 | 默认值 | 示例 | 约束 | 描述 |
tenant_id |
path |
string |
是 |
|
|
|
租户ID |
hook_id |
path |
string |
是 |
|
|
|
Webhook ID |
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
code |
integer |
否 |
|
|
|
message |
string |
否 |
|
|
|
timestamp |
string |
否 |
|
|
|
service-tenant/internal/handler/dto.RotateSecretDetailResponse
service-tenant/internal/handler/dto.RotateSecretResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
secret |
string |
否 |
whsec_new_generated_secret |
|
|