Authentication
Two-Factor Authentication
Update cPanel account's 2FA data
This function updates the Two-Factor Authentication (2FA) configuration for the given cPanel user.
post/twofactorauth_set_tfa_config_for_user
Request body
object required
Example request
{
"example": {
"email": {
"user@example.com": {
"secret": "QLLIU5WTY3UTJGNG"
}
},
"primary_account": {
"secret": "QLLIU5WTY3UTJGNG"
},
"team": {
"team_user@example": {
"secret": "QLLIU5WTY3UTJGNG"
}
}
}
}Response
HTTP Request was successful.
Example response
{
"metadata": {
"command": "twofactorauth_set_tfa_config_for_user",
"reason": "OK",
"result": 1,
"version": 1
}
}