more API commands

Version 1.243

Feature
Finished

1. Edit User Login Password 2. Backups 3. Mailing lists 1. Edit User Login Password: CMD_API_PASSWD method is to be POST only. oldpass=oldpassword passwd=newpass passwd2=newpass -------------------------- Update: Newer DA versions also need: system=yes ftp=yes database=yes to specify which of the system accounts to change. Note that "Email" is part of the system=yes option. 2. User Level Backups CMD_API_SITE_BACKUP method can be GET or POST. ################### #list current available backup files domain=domain.com (hidden value, doesn't affect the outcome of the backup, but is required) ################### #create a backup action=backup domain=domain.com (hidden value, doesn't affect the outcome of the backup, but is required) for the following items, include whichever ones you wish to include in the backup. The format is select0=<b>item</b>, where you would use select1=<b>item2</b> for the next item, etc. domain subdomain email forwarder autoresponder vacation list emailsettings ftp ftpsettings database See the Actual user backup page to see what each item does. ################### #restore a backup action=restore domain=domain.com (hidden value, doesn't affect the outcome of the backup, but is required) file=filename.tar.gz Include the desired items using the same select0=item technique as above. Use the action=view command from below to see what items are actually available to restore. ################### #view a backup file's contained items. action=view domain=domain.com (hidden value, doesn't affect the outcome of the backup, but is required) file=filename.tar.gz returns a list of selectable items (see the above list ) 3. Mailing Lists CMD_API_EMAIL_LIST method can be GET or POST action=create domain=domain.com name=list (do not include @domain.com). action=delete domain=domain.com select0=list (select1=list2) ..etc.. action=add domain=domain.com name=list type=digest or list (one or the other, whichever you are adding to). email=bob@email.com (you can use comma sperated lists here) action=view domain=domain.com name=list returns: s0=email@addr.com&s1=subscriber2@add.com&d0=digest@other.com..etc.. action=modify domain=domain.com name=list this will ouput a large number of settings.. too many to list here. Just run it to see what you get. action=delete_subscriber or action=delete_subscriber_digest domain=domain.com name=list select0=email@domain.com (select1=email2@domain.com, other@email.com)..etc.. action=save domain=domain.com name=list you'll nee to also include all of the parameters outputted from the action=modify result. Make any change with them, then save them. domain=domain.com (with nothing else) returns a list of mailling lists in the format: list=1:2&list2=4:2..etc... where with 1:2 , the 1 is the number of subscribers, and the 2 is the number of digest subscribers.

Interested to try DirectAdmin? Get a 30-day Free Trial!