Openminds Sock API

Apply to Subdomain

Applies a DNS template to a subdomain

URL

/dns_templates/:dns_template_id/apply_to_subdomain

Method

POST

Data parameters

Required

  • user_token=[string]
  • client_token=[string]
  • subdomain=[string]

Optional

  • suffix=[string]

Sample usage

    $ curl -X POST https://sock.openminds.be/api/v1/dns_templates/75/apply_to_subdomain -d user_token=1234 -d client_token=5678 -d subdomain=openminds.be

Sample response

{
    "dns_template_records": [
        {
            "content": "1.1.1.1",
            "id": 1428,
            "name": null,
            "priority": null,
            "ttl": 3600,
            "type": "A"
        }
    ],
    "id": 75,
    "name": "client",
    "publicly_available": false,
    "subdomains": 2
}