Skip to main content
PATCH
Change the Two-factor sign-in settings

Authorizations

Api-Token
string
header
required

Server-to-server authentication. Generate a token in the admin UI at Settings → Developers → API Access. Send the raw token in the Api-Token header — there is no Bearer prefix.

Tokens can be marked read-only at creation time, in which case the API rejects any non-GET request with 403 Forbidden.

Query Parameters

dryRun
boolean

Check and report the change without saving it

Body

application/json

The settings to change

isActive
boolean
default:false

Turns on two-factor sign-in. Organisation HR, financial and admin users must then confirm an emailed code on every untrusted device; other members can opt in from their profile. Switching it on makes every organisation-level HR, financial and admin user confirm an emailed code at their next sign-in on an untrusted device. Dry-run and confirm with the person first.

Response

OK