CorefinityCorefinityDocs
Open the Control PanelControl Panel
Domains · 2 of 8

corestack_domains_update

Change a site's aliases.

Scope writeRuns as a taskNo secrets returnedCoreCluster
On this page

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

Prompt
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

aliasesarray of strings or objectsRequired

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
base_urlboolean
hoststringRequired

Up to 253 characters.

servestring
redirectstorefront
storeobject or null
Fields
codestringRequired

Up to 32 characters.

typestringRequired
websitestore
noindexbooleanRequired
point_base_urlsarray of strings

Explicitly 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.

site_idintegerRequired

At least 1.

versionintegerRequired

The set's version from corestack_domains_get. At least 0.

Example call

tools/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

ReasonWhat to do
busyAnother change is running on this row; wait for it (corestack_site_operation_get) and call again.
staleThe object changed since you read it; read it again and call with the new version.
maintenanceThe site is in maintenance mode; turn it off first, or wait for the maintenance to end.
preview_onlyThe row has no domain attached yet; attach one with corestack_site_attach_domain first.
domains_lockedThe domains are locked by Corefinity's team for this row; contact support.
managed_elsewhereAnother 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_hostsThe site has platform store addresses managed by staff; contact support.
store_requiredaliases.<n>.store identifies the choice. Give a new serving alias a store choice, or null to show the default store.
store_unknownaliases.<n>.store identifies the choice. Read the stores again and choose a code Magento lists.
store_inactivealiases.<n>.store identifies the choice. Switch the store view on in Magento or choose another.
store_code_formataliases.<n>.store identifies the choice. Use a Magento code with lower-case letters, digits or underscores, up to 32 characters.
store_host_not_servedFirst add the address as an alias that shows its own store.
store_mapping_foreignThe store rules are managed outside the Control Panel; contact support.
store_mapping_unreadableThe existing store rules cannot be read safely; contact support.
nginx_rules_not_adoptedThe site's rules are not ready for this change; contact support.
nginx_rules_lockedThe site's rules are locked; contact support.
nginx_invalidThe site's existing rules need attention before the store can be changed.
upstream_unavailableMagento's stores could not be read; try again in a moment.
invalid_argumentsThe 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_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe 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_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT