API referenceSections

Require or relax two-step verification for admins and resellers; audited

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

PUT /api/v1/tenants/{tid}/security/mfa-policy

Require or relax two-step verification for admins and resellers; audited

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

  • required boolean required

    Admins and resellers must use two-step verification

Example
{
  "required": true
}

Responses

200 Policy

Content type: application/json

Fields of MFAPolicy are shown above.

Example
{
  "required": true
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required