Login

Restore records from template

HTTP method

POST

URL

https://api.zilore.com/dns/v1/templates/{template_id}/restore

Request parameters

Parameter

Description

template_id

Identifier of template

domain_name

Domain name to which a template must be applied. Must conform to the standard. Names of national domains must be passed in Punycode format.

Any {domain_name} entry in record names or values will be replaced by the domain name you pass
Templates allow rapid deployment of a group of records. Applying a template to a domain name deploys the template records in that domain, but does not create a link between the template and the domain. Thus, any use of a template up to and including deleting it has no effect on the domains to which it has been applied. Applying empty templates to a domain name is impossible and pointless.

Request example

POST https://api.zilore.com/dns/v1/templates/198/restore
X-Auth-Key: 6fac94db-691b-ec08-d22c-00000b7c06c0
Content-Type: application/x-www-form-urlencoded

domain_name=example.com

Response example

{
"status": "ok",
"response": {
"custom_template_status": "Custom template restored",
"custom_template_id": "198"
}
}