POST
/
waap
/
v1
/
custom-page-sets
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
custom_page_set = client.waap.custom_page_sets.create(
    name="x",
)
print(custom_page_set.id)
{
  "domains": [
    123
  ],
  "block": {
    "logo": "<string>",
    "header": "<string>",
    "title": "<string>",
    "text": "<string>",
    "enabled": true
  },
  "block_csrf": {
    "logo": "<string>",
    "header": "<string>",
    "title": "<string>",
    "text": "<string>",
    "enabled": true
  },
  "captcha": {
    "logo": "<string>",
    "header": "<string>",
    "title": "<string>",
    "text": "<string>",
    "error": "<string>",
    "enabled": true
  },
  "cookie_disabled": {
    "header": "<string>",
    "text": "<string>",
    "enabled": true
  },
  "handshake": {
    "logo": "<string>",
    "header": "<string>",
    "title": "<string>",
    "enabled": true
  },
  "javascript_disabled": {
    "header": "<string>",
    "text": "<string>",
    "enabled": true
  },
  "name": "<string>",
  "id": 123
}

Authorizations

APIKey
string
header
required

API key for authentication.

Body

application/json

Create a custom page set

Response

201
application/json

Successful Response

The response is of type object.