A AuthMS API Wiki API Reference iam.tianv.com →

PUT /admin/oauth/clients/{client_id}/secrets/{secret_id}/deactivate

将指定密钥状态设为停用(仍可验证现有令牌,但不接受新令牌)

OAuth 客户端管理 `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
client_id path string Yes 客户端ID
secret_id path string Yes 密钥ID

Responses

StatusDescriptionSchema
200更新后的密钥信息(status=inactive)dto.OAuthClientSecretDetailResponse
400请求参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证:请提供有效的 Bearer Tokengitee_com_linmes_authms_base_dto.SimpleResponse
403权限不足:需要管理员权限gitee_com_linmes_authms_base_dto.SimpleResponse
404客户端或密钥不存在gitee_com_linmes_authms_base_dto.SimpleResponse
500服务内部错误gitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.OAuthClientSecretDetailResponse

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

dto.OAuthClientSecretResponse

OAuth客户端密钥信息,不含实际密钥值

FieldTypeRequiredExampleConstraintsDescription
created_at string No 2026-04-15T10:30:00Z
description string No Secondary client secret
expires_at string No 2026-05-15T10:30:00Z
last_used_at string No 2026-04-15T12:00:00Z
secret_id string No secret-abc123
status string No active
updated_at string No 2026-04-15T10:30:00Z

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No