Anchor to mobilePlatformApplicationUpdatemobile
mobilePlatformApplicationUpdate
mutation
Requires access scope. Please contact Shopify Support to enable this scope for your app.
Update a mobile platform application.
Anchor to Arguments
Arguments
- •ID!required
The ID of the Mobile Platform Application to be updated.
- Anchor to inputinput•
The input to updat a Mobile Platform Application.
Was this section helpful?
Anchor to MobilePlatformApplicationUpdatePayload returnsMobilePlatformApplicationUpdatePayload returns
- Anchor to mobilePlatformApplicationmobile•
Platform Application Created mobile platform application.
- Anchor to userErrorsuser•
Errors The list of errors that occurred from executing the mutation.
Was this section helpful?
- Update a mobile platform application
- Update an Android Mobile Platform Application
- Update an Apple Mobile Platform Application
- mobilePlatformApplicationUpdate reference
Examples
const { admin } = await authenticate.admin(request);
const response = await admin.graphql(
`#graphql
mutation MobilePlatformApplicationUpdate($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {
mobilePlatformApplicationUpdate(id: $id, input: $input) {
mobilePlatformApplication {
... on AppleApplication {
id
appId
universalLinksEnabled
sharedWebCredentialsEnabled
appClipsEnabled
appClipApplicationId
}
}
userErrors {
field
message
}
}
}`,
{
variables: {
"id": "gid://shopify/MobilePlatformApplication/1066176040",
mutation MobilePlatformApplicationUpdate($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {
mobilePlatformApplicationUpdate(id: $id, input: $input) {
mobilePlatformApplication {
... on AppleApplication {
id
appId
universalLinksEnabled
sharedWebCredentialsEnabled
appClipsEnabled
appClipApplicationId
}
}
userErrors {
field
message
}
}
}
curl -X POST \
https://your-development-store.myshopify.com/admin/api/2025-01/graphql.json \
-H 'Content-Type: application/json' \
-H 'X-Shopify-Access-Token: {access_token}' \
-d '{
"query": "mutation MobilePlatformApplicationUpdate($id: ID!, $input: MobilePlatformApplicationUpdateInput!) { mobilePlatformApplicationUpdate(id: $id, input: $input) { mobilePlatformApplication { ... on AppleApplication { id appId universalLinksEnabled sharedWebCredentialsEnabled appClipsEnabled appClipApplicationId } } userErrors { field message } } }",
"variables": {
"id": "gid://shopify/MobilePlatformApplication/1066176040",
"input": {
"apple": {
"appId": "com.apple.package",
"universalLinksEnabled": false,
"sharedWebCredentialsEnabled": false,
"appClipsEnabled": true,
"appClipApplicationId": "clip.app"
}
}
}
}'
const { admin } = await authenticate.admin(request);
const response = await admin.graphql(
`#graphql
mutation MobilePlatformApplicationUpdate($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {
mobilePlatformApplicationUpdate(id: $id, input: $input) {
mobilePlatformApplication {
... on AppleApplication {
id
appId
universalLinksEnabled
sharedWebCredentialsEnabled
appClipsEnabled
appClipApplicationId
}
}
userErrors {
field
message
}
}
}`,
{
variables: {
"id": "gid://shopify/MobilePlatformApplication/1066176040",
"input": {
"apple": {
"appId": "com.apple.package",
"universalLinksEnabled": false,
"sharedWebCredentialsEnabled": false,
"appClipsEnabled": true,
"appClipApplicationId": "clip.app"
}
}
},
},
);
const data = await response.json();
const client = new shopify.clients.Graphql({session});
const data = await client.query({
data: {
"query": `mutation MobilePlatformApplicationUpdate($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {
mobilePlatformApplicationUpdate(id: $id, input: $input) {
mobilePlatformApplication {
... on AppleApplication {
id
appId
universalLinksEnabled
sharedWebCredentialsEnabled
appClipsEnabled
appClipApplicationId
}
}
userErrors {
field
message
}
}
}`,
"variables": {
"id": "gid://shopify/MobilePlatformApplication/1066176040",
"input": {
"apple": {
"appId": "com.apple.package",
"universalLinksEnabled": false,
"sharedWebCredentialsEnabled": false,
"appClipsEnabled": true,
"appClipApplicationId": "clip.app"
}
}
},
},
});
session = ShopifyAPI::Auth::Session.new(
shop: "your-development-store.myshopify.com",
access_token: access_token
)
client = ShopifyAPI::Clients::Graphql::Admin.new(
session: session
)
query = <<~QUERY
mutation MobilePlatformApplicationUpdate($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {
mobilePlatformApplicationUpdate(id: $id, input: $input) {
mobilePlatformApplication {
... on AppleApplication {
id
appId
universalLinksEnabled
sharedWebCredentialsEnabled
appClipsEnabled
appClipApplicationId
}
}
userErrors {
field
message
}
}
}
QUERY
variables = {
"id": "gid://shopify/MobilePlatformApplication/1066176040",
"input": {
"apple": {
"appId": "com.apple.package",
"universalLinksEnabled": false,
"sharedWebCredentialsEnabled": false,
"appClipsEnabled": true,
"appClipApplicationId": "clip.app"
}
}
}
response = client.query(query: query, variables: variables)
Input variables
JSON{
"id": "gid://shopify/MobilePlatformApplication/1066176040",
"input": {
"apple": {
"appId": "com.apple.package",
"universalLinksEnabled": false,
"sharedWebCredentialsEnabled": false,
"appClipsEnabled": true,
"appClipApplicationId": "clip.app"
}
}
}
Response
JSON{
"mobilePlatformApplicationUpdate": {
"mobilePlatformApplication": {
"id": "gid://shopify/MobilePlatformApplication/1066176040",
"appId": "com.apple.package",
"universalLinksEnabled": false,
"sharedWebCredentialsEnabled": false,
"appClipsEnabled": true,
"appClipApplicationId": "clip.app"
},
"userErrors": []
}
}