Skip to main content

Create DNS record

POST 

/dns_zones/dns_zone/records

Create a new DNS record

Scopes

  • dns

OAuth2 Scopes

When using OAuth2 authentication, scopes are prefixed with api.katapult.io/core/v1/.

Request

Body

    dns_zone

    object

    required

    All 'dns_zone[]' params are mutually exclusive, only one can be provided.

    id string
    name string

    properties

    object

    required

    name string

    The name of the record

    type DNSRecordTypesEnum (string)

    Possible values: [A, AAAA, ALIAS, CAA, CNAME, HTTPRedirect, IPS, MX, NS, PTR, SOA, SRV, SSHFP, TXT, VirtualMachine]

    ttl integer
    priority integer

    content

    object

    A

    object

    ip_address string

    AAAA

    object

    ip_address string

    ALIAS

    object

    hostname string

    CAA

    object

    flag string
    tag string
    value string

    CNAME

    object

    hostname string

    HTTPRedirect

    object

    url string
    http_status string

    IPS

    object

    ip_addresses string

    MX

    object

    hostname string

    NS

    object

    hostname string

    PTR

    object

    hostname string
    SOA object

    SRV

    object

    weight string
    port string
    target string

    SSHFP

    object

    algorithm string
    fingerprint_type string
    fingerprint string

    TXT

    object

    content string

    VirtualMachine

    object

    virtual_machine string

Responses

Create a new DNS record

Schema

    dns_record

    object

    required

    id string
    name stringnullable
    full_name string
    ttl integernullable
    type DNSRecordTypesEnum (string)

    Possible values: [A, AAAA, ALIAS, CAA, CNAME, HTTPRedirect, IPS, MX, NS, PTR, SOA, SRV, SSHFP, TXT, VirtualMachine]

    priority integernullable
    content string

    content_attributes

    object

    A

    object

    nullable

    ip_address stringnullable

    AAAA

    object

    nullable

    ip_address stringnullable

    ALIAS

    object

    nullable

    hostname stringnullable

    CAA

    object

    nullable

    flag stringnullable
    tag stringnullable
    value stringnullable

    CNAME

    object

    nullable

    hostname stringnullable

    HTTPRedirect

    object

    nullable

    url stringnullable
    http_status stringnullable

    IPS

    object

    nullable

    ip_addresses stringnullable

    MX

    object

    nullable

    hostname stringnullable

    NS

    object

    nullable

    hostname stringnullable

    PTR

    object

    nullable

    hostname stringnullable
    SOA objectnullable

    SRV

    object

    nullable

    weight stringnullable
    port stringnullable
    target stringnullable

    SSHFP

    object

    nullable

    algorithm stringnullable
    fingerprint_type stringnullable
    fingerprint stringnullable

    TXT

    object

    nullable

    content stringnullable

    VirtualMachine

    object

    nullable

    virtual_machine stringnullable
Loading...