PATCH
/
settings
/
auth-settings
Update Authentication Settings
curl --request PATCH \
  --url https://api.wacht.dev/settings/auth-settings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "allow_signups": true,
  "require_email_verification": true,
  "password_min_length": 8,
  "password_require_uppercase": true,
  "password_require_numbers": true,
  "password_require_special": true,
  "session_timeout": 86400,
  "mfa_enabled": false,
  "allowed_oauth_providers": [
    "google"
  ]
}'
{
  "allow_signups": true,
  "require_email_verification": true,
  "password_min_length": 8,
  "password_require_uppercase": true,
  "password_require_numbers": true,
  "password_require_special": true,
  "session_timeout": 86400,
  "mfa_enabled": false,
  "allowed_oauth_providers": [
    "google"
  ]
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication using the Authorization header

Body

application/json

Response

Settings updated successfully

The response is of type object.