Add a domain
site_add_domainBind one or more additional domains to an existing aaPanel site by specifying its website ID, primary domain, and newline-separated domains. Ensure the primary site name is also added to DNS.
Instructions
Bind an extra domain to an existing site. Newline-separated values add several at once. The site name must also be added to DNS.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"webname": "<webname>",
"domain": "<domain>"
},
"name": "site_add_domain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Website id. | |
| domain | Yes | Domain to add, e.g. www.example.com. Omit :80 and separate multiples with newlines. | |
| webname | Yes | Primary domain of the site. |