Setup DNS

Create a new Setup DNS record.

post/api/cp/setup/dns

Request

  • Base URL
    https://app.connexcs.com
  • Auth
    • OAuth 2
      Authorization code: https://auth.connexcs.com/authorize
      Token URL: https://auth.connexcs.com/token
    • or HTTP bearer

Request body

idinteger

Id

account_idinteger

Account Id

domainstring required

Domain (unique)

astring required

A

srv_t1string required

Srv T 1

srv_t2string required

Srv T 2

srv_t3string required

Srv T 3

ttlinteger

Ttl

srv_t1_anyedge_mirrorinteger

Srv T 1 Anyedge Mirror

srv_t2_anyedge_mirrorinteger

Srv T 2 Anyedge Mirror

srv_t3_anyedge_mirrorinteger

Srv T 3 Anyedge Mirror

Example request

{
  "id": 12345,
  "account_id": 1,
  "domain": "example_domain",
  "a": "example_a",
  "srv_t1": "example_srv_t1",
  "srv_t2": "example_srv_t2",
  "srv_t3": "example_srv_t3",
  "ttl": 123,
  "srv_t1_anyedge_mirror": 123,
  "srv_t2_anyedge_mirror": 123,
  "srv_t3_anyedge_mirror": 123
}

Response

Successful response

statusstring

Operation status

Example response

{
  "id": 12345,
  "status": "OK"
}

Changes

    • info

      the endpoint scheme security oAuth2 was added to the API

    • info

      the endpoint scheme security opaqueToken was added to the API

    • info

      the endpoint scheme security basicAuth was removed from the API