Admin API / Mutations
addCustomDomain
Adds a custom domain to the store. Requires the OWNER role or higher, and a plan with custom domains. A store has at most 5 enabled custom domains unless District raises the limit. The first enabled domain that serves the storefront becomes the primary domain. A domain that serves no storefront never becomes the primary domain. A domain of another store can be added only when that store has not served it for 30 days and added it 7 or more days ago. An add of an enabled custom domain of the store changes nothing and answers success when the domain would store the same storefront label: its stored label, or any label when the domain serves no storefront. So an add is safe to retry. An add of it with another label answers CustomDomainStorefrontHostFixedError.
admin:storefront:manageRequires this member role or higher: OWNERaddCustomDomain(
input: AddCustomDomainInput!
): AddCustomDomainPayload!Arguments
| Argument | Type | Description |
|---|---|---|
input | AddCustomDomainInput! | The domain to add. |