Anchor to hydrogenStorefrontCustomerApplicationUrlsReplacehydrogen
hydrogenStorefrontCustomerApplicationUrlsReplace
mutation
Requires Request must be initiated from the Shopify CLI and user must have full access to apps or access to the Hydrogen channel.
Updates a customer application URLs.
Anchor to Arguments
Arguments
- Anchor to storefrontIdstorefront•
Id ID!required The ID of the storefront.
- Anchor to urlsReplaceInputurls•
Replace Input An object of fields to update on the customer identity oauth application.
Was this section helpful?
Anchor to HydrogenStorefrontCustomerApplicationUrlsReplacePayload returnsHydrogenStorefrontCustomerApplicationUrlsReplacePayload returns
- Anchor to javascriptOriginjavascript•
Origin List of allowed javaScript url origins.
- Anchor to logoutUrislogout•
Uris List of allowed urls that can be redirected to post-logout.
- Anchor to redirectUriredirect•
Uri List of allowed callback urls.
- Anchor to successsuccess•
Whether the customer application was updated successfully.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation hydrogenStorefrontCustomerApplicationUrlsReplace($storefrontId: ID!, $urlsReplaceInput: HydrogenStorefrontCustomerApplicationUrlsReplaceInput!) {
hydrogenStorefrontCustomerApplicationUrlsReplace(storefrontId: $storefrontId, urlsReplaceInput: $urlsReplaceInput) {
javascriptOrigin
logoutUris
redirectUri
success
userErrors {
field
message
}
}
}
Input
{
"storefrontId": "gid://shopify/<objectName>/10079785100",
"urlsReplaceInput": {
"javascriptOrigin": {
"add": [
"<your-add>"
],
"removeRegex": "<your-removeRegex>"
},
"logoutUris": {
"add": [
"<your-add>"
],
"removeRegex": "<your-removeRegex>"
},
"redirectUri": {
"add": [
"<your-add>"
],
"removeRegex": "<your-removeRegex>"
}
}
}
{
"storefrontId": "gid://shopify/<objectName>/10079785100",
"urlsReplaceInput": {
"javascriptOrigin": {
"add": [
"<your-add>"
],
"removeRegex": "<your-removeRegex>"
},
"logoutUris": {
"add": [
"<your-add>"
],
"removeRegex": "<your-removeRegex>"
},
"redirectUri": {
"add": [
"<your-add>"
],
"removeRegex": "<your-removeRegex>"
}
}
}
input HydrogenStorefrontCustomerApplicationUrlsReplaceInput {
javascriptOrigin: HydrogenStorefrontCustomerApplicationUrlsReplaceUriInput
logoutUris: HydrogenStorefrontCustomerApplicationUrlsReplaceUriInput
redirectUri: HydrogenStorefrontCustomerApplicationUrlsReplaceUriInput
}
input HydrogenStorefrontCustomerApplicationUrlsReplaceUriInput {
add: [String!]
removeRegex: String
}