Create a new nameserver template for domains

Create a new nameserver template for your domains. This is useful when you want to define a standard set of nameservers for multiple domains at once. The endpoint returns an ID that can be used for subsequent actions related to the template.

Headers

Accept Example
Content-Type Example

Body

required
application/json
name string required
description any required
nameservers array required

Responses

200
success boolean
timestamp string
requestId string
data object
POST https://cloud.hostup.se/api/nameserver-templates
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/nameserver-templates" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "description": null,
    "nameservers": [
      "string"
    ]
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "template": {
      "id": "string",
      "client_id": 0,
      "name": "string",
      "description": "string",
      "is_system": true,
      "nameservers": [
        "string"
      ],
      "created_at": "string",
      "updated_at": "string"
    },
    "message": "string"
  }
}
Request Body
{
  "name": "string",
  "description": null,
  "nameservers": [
    "string"
  ]
}