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

PUT /mfa/webauthn/credentials/{id}

重命名指定WebAuthn凭证的设备名称。参考:W3C WebAuthn Level 2、FIDO2 CTAP 2.1。

MFA `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
id path string Yes 凭证ID

Request Body

Schema: dto.UpdateWebAuthnCredentialRequest

FieldTypeRequiredExampleConstraintsDescription
name string Yes

Responses

StatusDescriptionSchema
200更新后的凭证dto.WebAuthnCredentialDataResponse
400参数错误gitee_com_linmes_authms_base_dto.SimpleResponse
401未认证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.WebAuthnCredentialDataResponse

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

dto.WebAuthnCredentialItem

FieldTypeRequiredExampleConstraintsDescription
created_at string No 2026-05-20T08:00:00Z
credential_id string No cred_xyz789
device_info string No FIDO2
id string No wc_abc123
last_used_at string No 2026-05-25T08:00:00Z
name string No YubiKey 5C

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No