• We value your experience with Plesk during 2026
    Please help us understand which Plesk features made your work easier this year, what is still missing and how AI should help you in Plesk ?
    Take this short 5-minutes survey. Your answers go straight into the Plesk roadmap for 2027.

Question Need Help in Domain API. Please.

Hassan_

New Pleskian
Hi, I am trying to add a domain to an existing subscription. Let's say the customer has Domain Test1.com, and I am creating a second domain as test2.com. I want the webspace to be set to test1.com, and I would like it not to require setting up an FTP user and password. Could someone please help? I am attaching my JSON body:

{
"name": "test15.com",
"hosting_type": "virtual",
"hosting_settings": {
"dest_url": "test6.com"
},
"owner_client": {
"login": "xyz"
},
"base_domain": {
"id": 156,
"name": "test6.com"
}
}
 
Back
Top