POST /admin/tenants/{tenant_id}/webhooks/{hook_id}/rotate-secret

Generate a new webhook signing key; the old key becomes invalid immediately

Tenant Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes Tenant ID
hook_id path string Yes Webhook ID

Responses

Referenced Schemas

dto.RotateSecretDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.RotateSecretResponse No
message string No
timestamp string No

dto.RotateSecretResponse

FieldTypeRequiredExampleConstraintsDescription
secret string No whsec_new_generated_secret

gitee_com_autional_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No