Generate MFA secret
POST/api/v4/users/:user_id/mfa/generate
Generates an multi-factor authentication secret for a user and returns it as a string and as base64 encoded QR code image.
Permissions
Must be logged in as the user or have the edit_other_users permission.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 501
MFA secret generation successful
Invalid or missing parameters in URL or request body
No access token provided
Do not have appropriate permissions
Resource not found
Feature is disabled