Solved DirectAdmin API - cPanel import?

Echo

Verified User
Joined
Nov 23, 2022
Messages
8
I'd like to know if it's possible to launch a cPanel import via the DirectAdmin API?

I have hundreds of sites to migrate and have set up a few automations in Make.com to save time.
  • Open a support ticket (WHMCS) to notify my customer when the migration begins.
  • Extract the list of e-mails from each account to create an rsync command that runs for X amount of time so that my customers don't lose any e-mails that arrive on the old server during the propagation time
  • Notify the customer that the migration is complete with a personalized message, depending on whether I'm the registrar or the NS manager.
  • etc. etc.
If it were possible to use the /evo/reseller/cpanel-import/start form via the API to launch imports, that would be perfect.

Does anyone know if this would be possible?
I didn't see anything on the https://www.directadmin.com/api.php page.
 

Attachments

  • cpanel-import.png
    cpanel-import.png
    54.4 KB · Views: 91
You can control cpanel imports using new API endpoints /api/cpanel-import/.... Documentation for new API is available via the Evolution skin on your DA server. Here is example link to our demo server https://demo.directadmin.com:2222/evo/api-docs

OH! THANK YOU!
This is exactly what I wanted!

In the "/api/cpanel-import/tasks/start" settings I see a "homeOverride": "/home2" and I'm not sure I understand this setting.

I replace with /home if my users are in /home under Directadmin?
 
Back
Top