Skip to main content
PATCH
/
settings
/
restrictions
Update deployment restrictions
curl --request PATCH \
  --url https://api.wacht.dev/settings/restrictions \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "allowlist_enabled": true,
  "blocklist_enabled": true,
  "block_subaddresses": true,
  "block_disposable_emails": true,
  "block_voip_numbers": true,
  "country_restrictions": {
    "mode": "allowlist",
    "allowed_country_codes": [
      "<string>"
    ],
    "blocked_country_codes": [
      "<string>"
    ]
  },
  "banned_keywords": [
    "<string>"
  ],
  "allowlisted_resources": [
    "<string>"
  ],
  "blocklisted_resources": [
    "<string>"
  ],
  "sign_up_mode": "open",
  "waitlist_collect_names": true,
  "multi_session_support": "enabled",
  "session_token_lifetime": 123,
  "session_validity_period": 123,
  "session_inactive_timeout": 123
}
'

Authorizations

Authorization
string
header
required

API key authentication (format: Bearer {api_key})

Body

application/json
allowlist_enabled
boolean
blocklist_enabled
boolean
block_subaddresses
boolean
block_disposable_emails
boolean
block_voip_numbers
boolean
country_restrictions
object
banned_keywords
string[]
allowlisted_resources
string[]
blocklisted_resources
string[]
sign_up_mode
enum<string>
Available options:
open,
closed,
waitlist
waitlist_collect_names
boolean
multi_session_support
enum<string>
Available options:
enabled,
disabled
session_token_lifetime
integer
session_validity_period
integer
session_inactive_timeout
integer

Response

200

Restrictions updated successfully