Template

You are currently watching the v2 legacy branch documentation.

Internal API: Template


Apply Template:

Apply a DNS template to a zone:

$domain = "example.com";
$id = 1;
$mode = NULL;

$result = $dns_api->template->apply($domain, $id, $mode);

When the mode variable is set to ‘client’, the id variable represents the client id. The custom template of the specified client is now used. If the mode variable is not set the id variable represents the template id as shown in the admin area template overview.