Anchor to hydrogenStorefrontEnvironmentUpdatehydrogen
mutationhydrogen Storefront Environment Update
Requires Request must be initiated from the Shopify CLI and user must have full access to apps or access to the Hydrogen channel.
Updates whether a Hydrogen storefront environment is public. A private environment can only be visited with an access token; a public one serves anyone at its URL.
Making an environment public counts toward the shop's limit of public environments. Preview environments can't be updated.
Learn more about Hydrogen environments.
Anchor to Arguments
Arguments
- environmentId (ID!)
- public (Boolean!)
- storefrontId (ID!)
- Anchor to environmentIdenvironment•ID!
Id required The ID of the environment to update.
- Anchor to publicpublic•Boolean!required
Whether the environment can be visited without an access token.
- Anchor to storefrontIdstorefront•ID!
Id required The ID of the storefront.
Was this section helpful?
Anchor to HydrogenStorefrontEnvironmentUpdatePayload returnsHydrogen Storefront Environment Update Payload returns
- userErrors ([HydrogenStorefrontEnvironmentUpdateUserError!]!)
- Anchor to userErrorsuser•[Hydrogen
Errors Storefront Environment Update User Error!]! non-null The list of errors that occurred from executing the mutation.
Show fields
Was this section helpful?