Change an own second factor

Description, default and status of an own second factor - with a session only.

WWriteIdempotentbeta
POST
/v1/access/tfa/seton https://api.manitu.de
Try it
Changes the account. Agents say what will happen and wait for an explicit yes before calling it.

Not offered over MCP - only to programs over REST.

One of X-API-Key, Authorization: Bearer … - never more than one in a request. More

Send at least 2 field(s).
tfa_idinteger | stringrequired

The factor, from access/tfa/list.

pattern ^[1-9][0-9]*$min 1
descriptionstring | null
max length 1024
is_defaultboolean
statusstring

inactive: kept, but not asked for at sign-in.

One of active inactive
tfa_idintegerrequired
typestringrequired

oath-totp: a code from an authenticator app; fido-u2f: a security key.

One of oath-totp fido-u2f
statusstringrequired

inactive: kept, but not asked for at sign-in.

One of active inactive
descriptionstring | nullrequired

What the customer wrote about it (his description), null if nothing - not its name or user name.

is_defaultbooleanrequired

The one the sign-in asks for first.

created_atstring | nullrequired
Format date-time
200Success.400The request does not match the declared input schema.401No credential was presented, or it was not recognised.403The credential is not permitted to use this operation.500The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.503The channel this operation forwards through is unavailable.