Update the name or settings of a registered WebAuthn credential. Requires sudo mode verification.
curl --request PATCH \
--url https://api.fluxer.app/v1/users/@me/mfa/webauthn/credentials/{credential_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"password": "<string>",
"mfa_method": "totp",
"mfa_code": "<string>",
"webauthn_response": {},
"webauthn_challenge": "<string>"
}
'{
"code": "ACCESS_DENIED",
"message": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}Bot token: Authorization: Bot <token>. This is the primary authentication method for bot applications.
The credential id
New name for the credential
8 - 256MFA method to use for verification
totp, sms, webauthn MFA verification code from authenticator app or SMS
WebAuthn authentication response
WebAuthn challenge string
No Content
curl --request PATCH \
--url https://api.fluxer.app/v1/users/@me/mfa/webauthn/credentials/{credential_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"password": "<string>",
"mfa_method": "totp",
"mfa_code": "<string>",
"webauthn_response": {},
"webauthn_challenge": "<string>"
}
'{
"code": "ACCESS_DENIED",
"message": "<string>",
"errors": [
{
"path": "<string>",
"message": "<string>",
"code": "<string>"
}
]
}