Create a template record
Changed onCreates a new template record.
Request
- Base URLhttps://api.dnsimple.com/v2
- Auth
- HTTP basic
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The account id
The template id or short name
Request body
Example request
{
"name": "",
"type": "MX",
"content": "mx.example.com",
"ttl": 600,
"priority": 10
}Response
Successfully create a template record.
Example response
{
"data": {
"id": 296,
"template_id": 268,
"name": "",
"content": "192.168.1.1",
"ttl": 3600,
"priority": null,
"type": "A",
"created_at": "2016-04-26T08:23:54Z",
"updated_at": "2016-04-26T08:23:54Z"
}
}Changes
- breaking
the
/response's property type changed fromintegertostringnullfor status
- breaking
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- info
added the new optional request property
- info
added the new optional request property
- info
the response property
became required for the status - info
the response property
/became required for the status - info
the response property
/became required for the status - info
the response property
/became required for the status - info
the response property
/became required for the status - info
the response property
/became required for the status - info
the response property
/became required for the status - info
the response property
/became required for the status - info
the response property
/became required for the status - info
the response property
/became required for the status
- breaking