Change delivery mode
update_hostingChanges the delivery mode (path or dedicated subdomain) for a new publication using an owner token; optionally checks hostingVersion and reports mismatches without rejecting stale values.
Instructions
Change delivery mode for a NEW publication (not a site, not a non-public HTML-format page). Requires owner token; optional expectedVersion = current hostingVersion. Mismatches are reported, not rejected: a stale version still applies, and OLD links or forced subdomain modes stay unchanged; the result then carries a delivery notice. Content updates never change hosting.
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": {
"type": "<type>",
"namespace": "<namespace>",
"id": "<id>",
"deliveryMode": "<deliveryMode>"
},
"name": "update_hosting"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Resource ID | |
| type | Yes | Resource type; sites always stay on their own subdomain | |
| namespace | Yes | Resource namespace; non-public HTML-format pages stay on subdomain | |
| ownerToken | No | Owner token from create. Default: env BREWPAGE_OWNER_TOKEN (local server only). | |
| deliveryMode | Yes | path = Promotion; subdomain = Dedicated subdomain | |
| expectedVersion | No | Optional current hostingVersion from the server; a stale value still applies and the result says so |