Skip to main content
PATCH
/
waap
/
v1
/
domains
/
{domain_id}
/
settings
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
client.waap.domains.settings.update(
    domain_id=1,
)
{
  "type": "http-bad-request",
  "title": "Bad Request",
  "status": 400,
  "detail": "Invalid domain name: ''''"
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

domain_id
integer
required

The domain ID The domain ID

Body

application/json

Represents the editable settings for a domain.

ddos
UpdateDomainDdosSettings · object

Editable DDoS settings for a domain.

api
UpdateApiSettings · object

Editable API settings of a domain

Response

Successful Response