Skip to main content
PATCH
/
waap
/
v1
/
domains
/
{domain_id}
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.update(
    domain_id=1,
    status="active",
)
{
  "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
status
enum<string>
required

The current status of the domain

Available options:
active,
monitor

Response

Successful Response