Add subdomain
subdomain_addAdd a subdomain and point it to a directory path. Configure redirect status and PHP version as needed.
Instructions
Create a subdomain pointing at a path (add_subdomain).
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": {
"subdomain": "<subdomain>",
"domain_name": "<domain_name>",
"path": "<path>"
},
"name": "subdomain_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Docroot path relative to the account, e.g. /preview | |
| subdomain | Yes | Subdomain label, e.g. 'preview' | |
| domain_name | Yes | Parent domain, e.g. example.com | |
| php_version | No | ||
| redirect_status | No | HTTP redirect status (0 = none, 301, 302) |