A token can rename the organization, but a change of mfa_required needs a fresh second factor. A token cannot give a second factor, so such a change gets 403 auth.api_token_not_allowed. Make it in the console.
Update an existing organization's properties. Changing mfa_required requires an administrator with an enrolled second factor to have confirmed it within the re-authentication window (POST /auth/mfa/reauth). A request that repeats the current value does not. An API token changes mfa_required only when it was issued with allow_security_changes.
Parameters
Organization ID (UUID)
Request body application/json · OrganizationRequest
Organization update request
Require a second factor from every member before a console session is issued. Omitted keeps the current policy.
Responses
OK
OrganizationResponse · 6 fields
True when the organization requires a second factor from every member.
Forbidden: the caller's roles do not grant the permission of the operation, or mfa_required changes and the administrator's second factor was not confirmed recently (details.reason=mfa_reauth_required), or the request uses an API token issued without allow_security_changes (details.reason=api_token_security_changes_not_allowed).
Common errors: 400 401 404 409 413 429 503 504. They mean the same for every operation, see Errors.