update_hosting
Change the delivery mode of a new publication between path and subdomain using an owner token. Optionally pass the current hosting version; stale values still apply with a notice.
Instructions
Change delivery mode for a NEW publication (not a site, not a non-public HTML-format page). Requires owner token; pass the current hostingVersion when known. 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.
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 | Yes | Original resource owner token | |
| 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 |