Create zone

POST
https://dennis.localhost/api/v1/zones

If successful, this endpoint will return a 201 Created status.

Arguments

The following arguments are supported for this endpoint.

Name Type Default Value

group Required

Group Lookup None

properties Required

ZonePropertiesSet None

allow_sub_domains_of_zones_in_other_groups

Boolean None

Potential Errors

The following errors may occur during this request.

Details HTTP status

group_not_found

No group could be found using the given arguments

404 Not Found

validation_error

A validation error occurred when saving the object

422 Unprocessable Entity

Returned Object

When the request is successful, you can expect an object matching the specification below to be returned.

{
    zone: Zone {
        id: Integer
        name: String
        group: Group {
            id: Integer
            name: String
            external_reference: String?
            created_at: Unix Timestamp
            updated_at: Unix Timestamp
            nameservers: [ Nameserver {
                id: Integer
                name: String
                server: Integer
                available: Boolean
                created_at: Unix Timestamp
                updated_at: Unix Timestamp
            } ]
        }
        created_at: Unix Timestamp
        updated_at: Unix Timestamp
        serial: Integer
        default_ttl: Integer
        external_reference: String?
        verified: Boolean
        nameservers_verified_at: Unix Timestamp?
        nameservers_checked_at: Unix Timestamp?
        always_verified: Boolean
        nameservers_verified: Boolean
        reverse_dns: Boolean
        stale_verification: Boolean
    }
}