PATCH
/
restrictions
Update Deployment Restrictions
curl --request PATCH \
  --url https://api.wacht.dev/restrictions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "allowed_email_domains": [
    "company.com",
    "partner.com"
  ],
  "blocked_email_domains": [
    "temp-mail.com"
  ],
  "allowed_countries": [
    "US",
    "CA",
    "GB"
  ],
  "blocked_countries": [
    "<string>"
  ],
  "ip_whitelist": [
    "<string>"
  ],
  "ip_blacklist": [
    "<string>"
  ]
}'
{
  "allowed_email_domains": [
    "company.com",
    "partner.com"
  ],
  "blocked_email_domains": [
    "temp-mail.com"
  ],
  "allowed_countries": [
    "US",
    "CA",
    "GB"
  ],
  "blocked_countries": [
    "<string>"
  ],
  "ip_whitelist": [
    "<string>"
  ],
  "ip_blacklist": [
    "<string>"
  ]
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication using the Authorization header

Body

application/json

Response

Restrictions updated successfully

The response is of type object.