Skip to main content
PUT
C#

Autorisations

Authorization
string
header
requis

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Paramètres de chemin

id
string
requis

L’ID de l’utilisateur en question.

Corps

type
enum<string>
requis
Options disponibles:
phone,
email,
totp
preferred_authentication_method
enum<string>

S’applique uniquement aux méthodes d’authentification par téléphone. La méthode de communication privilégiée.

Options disponibles:
voice,
sms
name
string

Libellé lisible par l’humain permettant d’identifier la méthode d’authentification.

Required string length: 1 - 20
phone_number
string

S’applique aux méthodes d’authentification par téléphone uniquement. Le numéro de téléphone de destination utilisé pour envoyer des codes de vérification par texto et par appel vocal.

Required string length: 2 - 30
email
string

S’applique aux méthodes d’authentification par courriel uniquement. L’adresse courriel utilisée pour envoyer des messages de vérification.

Minimum string length: 1
totp_secret
string

S’applique aux méthodes d’authentification TOTP uniquement. Le Secret encodé en base32 pour la génération de TOTP.

Minimum string length: 1

Réponse

Toutes les méthodes d’authentification ont été mises à jour avec succès.

type
enum<string>
requis
Options disponibles:
phone,
email,
totp,
webauthn-roaming
id
string<authenticator-id>

L’ID de la méthode d’authentification nouvellement créée (généré automatiquement par l’application)

name
string

Libellé lisible permettant d’identifier la méthode d’authentification.

totp_secret
string

Secret encodé en Base32 pour la génération de TOTP

phone_number
string

S’applique uniquement aux méthodes d’authentification par téléphone. Numéro de téléphone de destination utilisé pour envoyer des codes de vérification par message texte ou appel vocal.

Required string length: 2 - 30
email
string

S’applique uniquement aux méthodes d’authentification par courriel. Adresse courriel utilisée pour envoyer des messages de vérification.

authentication_methods
object[]
preferred_authentication_method
enum<string>

Méthode d’authentification par téléphone privilégiée

Options disponibles:
voice,
sms
key_id
string

S’applique aux authentificateurs WebAuthn uniquement. L’ID de l’information d’authentification.

public_key
string

S’applique aux authentificateurs WebAuthn uniquement. La clé publique.

aaguid
string

S’applique aux passkeys uniquement. Identifiant global unique d’attestation de l’authentificateur.

relying_party_identifier
string

S’applique aux authentificateurs WebAuthn uniquement. L’identifiant de la partie de confiance.

created_at
string<date-time>

Date de création de la méthode d’authentification