Body
application/json
Response
CreateZoneResponse
The response is of type object
.
curl --request POST \
--url https://api.___serverhost___/dns/v2/zones \
--header 'Content-Type: application/json' \
--data '{
"contact": "<string>",
"enabled": true,
"expiry": 123,
"meta": "{\"webhook\": \"http://example.com/hook\",\"webhook_method\":\"PUT\"}",
"name": "example.com",
"nx_ttl": 123,
"primary_server": "<string>",
"refresh": 123,
"retry": 123,
"serial": 123
}'
{
"id": 123,
"warnings": [
"<string>"
]
}
Add DNS zone.
curl --request POST \
--url https://api.___serverhost___/dns/v2/zones \
--header 'Content-Type: application/json' \
--data '{
"contact": "<string>",
"enabled": true,
"expiry": 123,
"meta": "{\"webhook\": \"http://example.com/hook\",\"webhook_method\":\"PUT\"}",
"name": "example.com",
"nx_ttl": 123,
"primary_server": "<string>",
"refresh": 123,
"retry": 123,
"serial": 123
}'
{
"id": 123,
"warnings": [
"<string>"
]
}
CreateZoneResponse
The response is of type object
.
Was this page helpful?