RUAL Documentation

PUT /twofactorauth/default/{guid}

Set a specific 2FA method as the default for the user

Set a specific 2FA method as the default for the user
Key Type Example
:guid required string
"example-guid"
Key Type Example
authorization required string
"Bearer your-jwt-token"
{ "_meta": { "guid": "example-string", "entity": "example-value", "created": "example-value", "modified": "example-value", "updated": "example-value" }, "user_guid": "example-string", "type": "totp", "name": "My TOTP Device", "phone_number": "+1234567890", "default": true, "verified": true, "app_identifier": "example-string" }
{ "success": false, "error": "HTTP_401", "message": "Error response" }
Error Code Description
HTTP_400 Bad request - user GUID not found or method not allowed
HTTP_401 HTTP 401 error
HTTP_404 No 2FA methods found
permission description
BearerAuth JWT access token obtained from login endpoint required

Back to Two-Factor Authentication Return to the Two-Factor Authentication category to view other endpoints All API Categories Browse all available API categories