Change TTL API

area62

Verified User
Joined
Sep 23, 2008
Messages
44
Does anyone know if this method/request is available in the latest API? I need it to change the TTL for all domains of a specific user.
 
Yes, here is my phpcode. It is not writen somewhere. But my code works

PHP:
$sock->query('/CMD_API_DNS_CONTROL',
								 array('domain' => ' DOMAIN ',
									   'action' => 'ttl',
									   'ttl_select' => 'custom',
									   'ttl' => ' NUMBER OF TTL '));

I dont know how is your code, but if you post it, i can help correct it for you.


Command naming format for API calls:
For APIs, they're always the same name as in DA (when logged in witha browser), just with API added, eg:
CMD_POP

becomes:
CMD_API_POP
http://www.directadmin.com/api.html
 
Last edited:
Back
Top