Update deployment access 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>"
]
}
JWT Bearer token authentication using the Authorization header
Restrictions updated successfully
The response is of type object
.
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>"
]
}