الانتقال إلى المحتوى الرئيسي
PATCH
Change a factor's name, metadata or state
انظر أيضاً حذف عامل مصادقة الهاتف.

التفويضات

x-api-key
string
header
مطلوب

Your application's API key, from Developers -> API keys in the Business Console. The primary key has full access. A named key can be scoped: none, read or write per resource, limited to some workflows or to approved sessions, to a list of IP addresses, and to an expiry date. 401 means the key is wrong, revoked or expired; 403 means no key was sent, the key has no access to this resource or action, or the request came from an address outside its IP list; 404 on a session route means the session is outside the key's workflows or statuses. A key without media access receives image, video and PDF URLs as null, and a key without sessions write receives session links and tokens as null. See https://docs.didit.me/console/api-keys.

معلمات المسار

factor_id
string
مطلوب

The factor to change.

مثال:

"fa_01JCH8K2"

الجسم

application/json
friendly_name
string

A new name for the authenticator app.

مثال:

"Work phone"

metadata
object

Replaces your keys and values with these, up to 10.

مثال:
status
enum<string>

disabled stops the factor's checks; verified turns a disabled factor back on.

الخيارات المتاحة:
disabled,
verified
مثال:

"disabled"

الاستجابة

The factor as it now stands.

factor_id
string
مطلوب

The factor.

مثال:

"fa_01JCH8K2"

type
enum<string>
مطلوب

The factor.

الخيارات المتاحة:
totp
مثال:

"totp"

status
enum<string>
مطلوب

unverified until the first successful check, verified after it, disabled while its checks are turned off.

الخيارات المتاحة:
unverified,
verified,
disabled
مثال:

"verified"

user_id
string

Your id for the user it belongs to.

مثال:

"u_481"

friendly_name
string

Shown in the authenticator app and in the factor list.

مثال:

"Demo App"

metadata
object

Your keys and values, as you sent them.

مثال:
created_at
string<date-time>

When it was enrolled.

مثال:

"2026-11-02T08:14:00Z"

last_used_at
string<date-time> | null

Its last successful check, null until there is one.

مثال:

"2026-11-21T09:58:00Z"

آخر تعديل في ٢٣ نوفمبر ٢٠٢٦