Set the two-factor policy
When on, each local user without TOTP must enrol at the next login. Open sessions continue.
PUT
/api/v1/two-factor-policyAuthorization
tse_sessionAPI key · cookierequiredRequest body
requiredapplication/jsonrequire_two_factorbooleanrequiredEach local user without TOTP must enrol at the next login
Responses
200
OK
require_two_factorbooleanrequiredEach local user without TOTP must enrol at the next login
default
Error
codestringStable code of the refusal, when the route has codes
detailsstring[]Additional detail, e.g. per-field validation failures
errorstringrequiredHuman-readable error message