- Server operating system version
- Ubuntu 24.04.2 LTS
- Plesk version and microupdate number
- 18.0.71
I’m using Plesk REST API v2 to manage domains. I already have a customer (id=2) and an existing subscription (e.g. example.com). I want to add a second domain under that same subscription without creating a new subscription each time.
This creates a new subscription/domain for that customer, but I want to add to the existing one instead.
{
"name": "example.com",
"hosting_type": "virtual",
"hosting_settings": {
"ftp_login": "exampleftp",
"ftp_password": "secret"
},
"owner_client": { "id": 2 },
"ip_addresses": ["10.0.0.100"],
"plan": { "name": "Unlimited" }
}
This creates a new subscription/domain for that customer, but I want to add to the existing one instead.