corestack_ domains_ update
Change a site's aliases.
When to use it
Set a site's aliases and whether search engines may index it, at the version from corestack_domains_get. Aliases redirect to the primary address, or show their own storefront on Shopware and Magento 2. A Magento serving alias names its website or store view, or uses null to show the default store. Its base URLs move automatically only from the site's own addresses; point_base_urls explicitly permits a move from another address.
After the store change completes and before changing DNS:
Request / with corestack_site_smoke_test, setting host to the store domain. The final URL must be on that
store's base_url host from corestack_site_magento_stores_list (the domain itself, or its bare or www form
when the base URL uses it), and the title must be that store's. Magento redirects to the store's base URL; a
redirect to any other host means its base URL points elsewhere.
GraphQL picks its store from the Store header, so it cannot prove a domain's store.
Ask for it
Using the Corefinity MCP server, call corestack_domains_update with site_id 4211, version 3, aliases ["www.example.co.uk",{"host":"guns.example.co.uk","serve":"storefront","store":{"code":"guns","type":"website"},"base_url":true}], noindex false. (Change a site's aliases.) Tell me what it returned.Inputs
Every alias to keep; omitted ones are removed. A host string or an object on Shopware and Magento 2. Up to 9 items.
store: {code, type} where type is website or store; null shows the default store with no host mapping. Required for a new storefront alias; omitted on an existing storefront keeps its mapping. Send null for an unmapped alias, never the read's null code/type object. base_url: Choose this address for the selected store's base URLs. At most one per store.
Fields of an item given as an object
Up to 253 characters.
redirectstorefrontFields
Up to 32 characters.
websitestoreExplicitly move these stores' base URLs from any address. Each host must have a store choice in aliases; at most one per store. Otherwise only values on the site's own addresses move. Up to 9 items.
At least 1.
The set's version from corestack_domains_get. At least 0.
Example call
{
"name": "corestack_domains_update",
"arguments": {
"site_id": 4211,
"version": 3,
"aliases": [
"www.example.co.uk",
{
"host": "guns.example.co.uk",
"serve": "storefront",
"store": {
"code": "guns",
"type": "website"
},
"base_url": true
}
],
"noindex": false
}
}If it is refused
| Reason | What to do |
|---|---|
busy | Another change is running on this row; wait for it (corestack_site_operation_get) and call again. |
stale | The object changed since you read it; read it again and call with the new version. |
maintenance | The site is in maintenance mode; turn it off first, or wait for the maintenance to end. |
preview_only | The row has no domain attached yet; attach one with corestack_site_attach_domain first. |
domains_locked | The domains are locked by Corefinity's team for this row; contact support. |
managed_elsewhere | Another control panel manages this site, so use that control panel for it. This is refused before anything else about the site, as in the Control Panel and the API. Nothing was done. |
store_hosts | The site has platform store addresses managed by staff; contact support. |
store_required | aliases.<n>.store identifies the choice. Give a new serving alias a store choice, or null to show the default store. |
store_unknown | aliases.<n>.store identifies the choice. Read the stores again and choose a code Magento lists. |
store_inactive | aliases.<n>.store identifies the choice. Switch the store view on in Magento or choose another. |
store_code_format | aliases.<n>.store identifies the choice. Use a Magento code with lower-case letters, digits or underscores, up to 32 characters. |
store_host_not_served | First add the address as an alias that shows its own store. |
store_mapping_foreign | The store rules are managed outside the Control Panel; contact support. |
store_mapping_unreadable | The existing store rules cannot be read safely; contact support. |
nginx_rules_not_adopted | The site's rules are not ready for this change; contact support. |
nginx_rules_locked | The site's rules are locked; contact support. |
nginx_invalid | The site's existing rules need attention before the store can be changed. |
upstream_unavailable | Magento's stores could not be read; try again in a moment. |
invalid_arguments | The arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again. |
tenant_mismatch | The object does not exist or the token may not see it. Check the id. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
pin_refused | The grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it. |
rate_limited | Too many calls. Wait for the number of seconds the answer names. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |