Skip to main content
PUT
C#

承認

Authorization
string
header
必須

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

パスパラメータ

id
string
必須

対象ユーザーの ID。

ボディ

type
enum<string>
必須
利用可能なオプション:
phone,
email,
totp
email
string

メールによる認証方法にのみ適用されます。確認メッセージの送信に使用するメールアドレス。

Minimum string length: 1
name
string

認証方法を識別するための、人が読めるラベル。

Required string length: 1 - 20
phone_number
string

電話による認証方法にのみ適用されます。テキストメッセージおよび音声で確認コードを送信するために使用する宛先電話番号。

Required string length: 2 - 30
preferred_authentication_method
enum<string>

phone 認証方法にのみ適用されます。優先される通信方法です。

利用可能なオプション:
voice,
sms
totp_secret
string

TOTP認証方法にのみ適用されます。TOTP生成用のbase32エンコード済みシークレット。

Minimum string length: 1

レスポンス

すべての認証方法が正常に更新されました。

type
enum<string>
必須
利用可能なオプション:
phone,
email,
totp,
webauthn-roaming
aaguid
string

パスキーにのみ適用されます。Authenticator Attestation Globally Unique Identifier。

authentication_methods
object[]
created_at
string<date-time>

認証方法の作成日時

email
string

メールの認証方法にのみ適用されます。確認メッセージの送信に使用されるメールアドレスです。

id
string<authenticator-id>

新しく作成された認証方法のID(アプリケーションによって自動生成されます)

key_id
string

WebAuthn認証器にのみ適用されます。credential の ID。

name
string

認証方法を識別するための、人が判読できるラベル。

phone_number
string

電話の認証方法にのみ適用されます。テキストメッセージと音声で確認コードを送信するために使用される送信先電話番号です。

Required string length: 2 - 30
preferred_authentication_method
enum<string>

優先する電話の認証方法

利用可能なオプション:
voice,
sms
public_key
string

WebAuthn認証器にのみ適用されます。公開鍵。

relying_party_identifier
string

WebAuthn認証器にのみ適用されます。リライングパーティ識別子。

totp_secret
string

TOTP生成用のBase32エンコードされたSecret