# mobilePlatformApplicationUpdate - admin-graphql - MUTATION Version: 2024-10 ## Description Update a mobile platform application. ### Access Scopes `write_mobile_platform_applications` access scope. Please contact Shopify Support to enable this scope for your app. ## Arguments * [id](/docs/api/admin-graphql/2024-10/scalars/ID): ID! - The ID of the Mobile Platform Application to be updated. * [input](/docs/api/admin-graphql/2024-10/input-objects/MobilePlatformApplicationUpdateInput): MobilePlatformApplicationUpdateInput! - The input to updat a Mobile Platform Application. ## Returns * [mobilePlatformApplication](/docs/api/admin-graphql/2024-10/unions/MobilePlatformApplication): MobilePlatformApplication Created mobile platform application. * [userErrors](/docs/api/admin-graphql/2024-10/objects/MobilePlatformApplicationUserError): MobilePlatformApplicationUserError! The list of errors that occurred from executing the mutation. ## Examples ### Update a mobile platform application Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2024-10/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"mutation MobilePlatformApplicationUpdate($id: ID!, $input: MobilePlatformApplicationUpdateInput!) { mobilePlatformApplicationUpdate(id: $id, input: $input) { mobilePlatformApplication { ... on AppleApplication { id appId universalLinksEnabled sharedWebCredentialsEnabled appClipsEnabled appClipApplicationId } } userErrors { field message } } }\",\n \"variables\": {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176040\",\n \"input\": {\n \"apple\": {\n \"appId\": \"com.apple.package\",\n \"universalLinksEnabled\": false,\n \"sharedWebCredentialsEnabled\": false,\n \"appClipsEnabled\": true,\n \"appClipApplicationId\": \"clip.app\"\n }\n }\n }\n}'\n" Node example: "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: {\n \"query\": `mutation MobilePlatformApplicationUpdate($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {\n mobilePlatformApplicationUpdate(id: $id, input: $input) {\n mobilePlatformApplication {\n ... on AppleApplication {\n id\n appId\n universalLinksEnabled\n sharedWebCredentialsEnabled\n appClipsEnabled\n appClipApplicationId\n }\n }\n userErrors {\n field\n message\n }\n }\n }`,\n \"variables\": {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176040\",\n \"input\": {\n \"apple\": {\n \"appId\": \"com.apple.package\",\n \"universalLinksEnabled\": false,\n \"sharedWebCredentialsEnabled\": false,\n \"appClipsEnabled\": true,\n \"appClipApplicationId\": \"clip.app\"\n }\n }\n },\n },\n});\n" Ruby example: "session = ShopifyAPI::Auth::Session.new(\n shop: \"your-development-store.myshopify.com\",\n access_token: access_token\n)\nclient = ShopifyAPI::Clients::Graphql::Admin.new(\n session: session\n)\n\nquery = <<~QUERY\n mutation MobilePlatformApplicationUpdate($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {\n mobilePlatformApplicationUpdate(id: $id, input: $input) {\n mobilePlatformApplication {\n ... on AppleApplication {\n id\n appId\n universalLinksEnabled\n sharedWebCredentialsEnabled\n appClipsEnabled\n appClipApplicationId\n }\n }\n userErrors {\n field\n message\n }\n }\n }\nQUERY\n\nvariables = {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176040\",\n \"input\": {\n \"apple\": {\n \"appId\": \"com.apple.package\",\n \"universalLinksEnabled\": false,\n \"sharedWebCredentialsEnabled\": false,\n \"appClipsEnabled\": true,\n \"appClipApplicationId\": \"clip.app\"\n }\n }\n}\n\nresponse = client.query(query: query, variables: variables)\n" Remix example: "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n mutation MobilePlatformApplicationUpdate($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {\n mobilePlatformApplicationUpdate(id: $id, input: $input) {\n mobilePlatformApplication {\n ... on AppleApplication {\n id\n appId\n universalLinksEnabled\n sharedWebCredentialsEnabled\n appClipsEnabled\n appClipApplicationId\n }\n }\n userErrors {\n field\n message\n }\n }\n }`,\n {\n variables: {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176040\",\n \"input\": {\n \"apple\": {\n \"appId\": \"com.apple.package\",\n \"universalLinksEnabled\": false,\n \"sharedWebCredentialsEnabled\": false,\n \"appClipsEnabled\": true,\n \"appClipApplicationId\": \"clip.app\"\n }\n }\n },\n },\n);\n\nconst data = await response.json();\n" Graphql query: "mutation MobilePlatformApplicationUpdate($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {\n mobilePlatformApplicationUpdate(id: $id, input: $input) {\n mobilePlatformApplication {\n ... on AppleApplication {\n id\n appId\n universalLinksEnabled\n sharedWebCredentialsEnabled\n appClipsEnabled\n appClipApplicationId\n }\n }\n userErrors {\n field\n message\n }\n }\n}" #### Graphql Input { "id": "gid://shopify/MobilePlatformApplication/1066176040", "input": { "apple": { "appId": "com.apple.package", "universalLinksEnabled": false, "sharedWebCredentialsEnabled": false, "appClipsEnabled": true, "appClipApplicationId": "clip.app" } } } #### Graphql Response { "data": { "mobilePlatformApplicationUpdate": { "mobilePlatformApplication": { "id": "gid://shopify/MobilePlatformApplication/1066176040", "appId": "com.apple.package", "universalLinksEnabled": false, "sharedWebCredentialsEnabled": false, "appClipsEnabled": true, "appClipApplicationId": "clip.app" }, "userErrors": [] } } } ### Update an Android Mobile Platform Application Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2024-10/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"mutation UpdateMobilePlatformApplication($id: ID!, $input: MobilePlatformApplicationUpdateInput!) { mobilePlatformApplicationUpdate(id: $id, input: $input) { mobilePlatformApplication { ... on AndroidApplication { id applicationId sha256CertFingerprints appLinksEnabled __typename } } userErrors { field message code } } }\",\n \"variables\": {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176035\",\n \"input\": {\n \"android\": {\n \"applicationId\": \"com.android.package\",\n \"appLinksEnabled\": true,\n \"sha256CertFingerprints\": [\n \"A1:B2:C3:D4\"\n ]\n }\n }\n }\n}'\n" Node example: "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: {\n \"query\": `mutation UpdateMobilePlatformApplication($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {\n mobilePlatformApplicationUpdate(id: $id, input: $input) {\n mobilePlatformApplication {\n ... on AndroidApplication {\n id\n applicationId\n sha256CertFingerprints\n appLinksEnabled\n __typename\n }\n }\n userErrors {\n field\n message\n code\n }\n }\n }`,\n \"variables\": {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176035\",\n \"input\": {\n \"android\": {\n \"applicationId\": \"com.android.package\",\n \"appLinksEnabled\": true,\n \"sha256CertFingerprints\": [\n \"A1:B2:C3:D4\"\n ]\n }\n }\n },\n },\n});\n" Ruby example: "session = ShopifyAPI::Auth::Session.new(\n shop: \"your-development-store.myshopify.com\",\n access_token: access_token\n)\nclient = ShopifyAPI::Clients::Graphql::Admin.new(\n session: session\n)\n\nquery = <<~QUERY\n mutation UpdateMobilePlatformApplication($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {\n mobilePlatformApplicationUpdate(id: $id, input: $input) {\n mobilePlatformApplication {\n ... on AndroidApplication {\n id\n applicationId\n sha256CertFingerprints\n appLinksEnabled\n __typename\n }\n }\n userErrors {\n field\n message\n code\n }\n }\n }\nQUERY\n\nvariables = {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176035\",\n \"input\": {\n \"android\": {\n \"applicationId\": \"com.android.package\",\n \"appLinksEnabled\": true,\n \"sha256CertFingerprints\": [\"A1:B2:C3:D4\"]\n }\n }\n}\n\nresponse = client.query(query: query, variables: variables)\n" Remix example: "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n mutation UpdateMobilePlatformApplication($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {\n mobilePlatformApplicationUpdate(id: $id, input: $input) {\n mobilePlatformApplication {\n ... on AndroidApplication {\n id\n applicationId\n sha256CertFingerprints\n appLinksEnabled\n __typename\n }\n }\n userErrors {\n field\n message\n code\n }\n }\n }`,\n {\n variables: {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176035\",\n \"input\": {\n \"android\": {\n \"applicationId\": \"com.android.package\",\n \"appLinksEnabled\": true,\n \"sha256CertFingerprints\": [\n \"A1:B2:C3:D4\"\n ]\n }\n }\n },\n },\n);\n\nconst data = await response.json();\n" Graphql query: "mutation UpdateMobilePlatformApplication($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {\n mobilePlatformApplicationUpdate(id: $id, input: $input) {\n mobilePlatformApplication {\n ... on AndroidApplication {\n id\n applicationId\n sha256CertFingerprints\n appLinksEnabled\n __typename\n }\n }\n userErrors {\n field\n message\n code\n }\n }\n}" #### Graphql Input { "id": "gid://shopify/MobilePlatformApplication/1066176035", "input": { "android": { "applicationId": "com.android.package", "appLinksEnabled": true, "sha256CertFingerprints": [ "A1:B2:C3:D4" ] } } } #### Graphql Response { "data": { "mobilePlatformApplicationUpdate": { "mobilePlatformApplication": { "id": "gid://shopify/MobilePlatformApplication/1066176035", "applicationId": "com.android.package", "sha256CertFingerprints": [ "A1:B2:C3:D4" ], "appLinksEnabled": true, "__typename": "AndroidApplication" }, "userErrors": [] } } } ### Update an Apple Mobile Platform Application Curl example: "curl -X POST \\\nhttps://your-development-store.myshopify.com/admin/api/2024-10/graphql.json \\\n-H 'Content-Type: application/json' \\\n-H 'X-Shopify-Access-Token: {access_token}' \\\n-d '{\n\"query\": \"mutation UpdateMobilePlatformApplication($id: ID!, $input: MobilePlatformApplicationUpdateInput!) { mobilePlatformApplicationUpdate(id: $id, input: $input) { mobilePlatformApplication { ... on AppleApplication { id appId universalLinksEnabled sharedWebCredentialsEnabled appClipsEnabled appClipApplicationId __typename } } userErrors { field message code } } }\",\n \"variables\": {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176032\",\n \"input\": {\n \"apple\": {\n \"appId\": \"com.apple.package\",\n \"appClipsEnabled\": true,\n \"appClipApplicationId\": \"clip.app\",\n \"universalLinksEnabled\": false,\n \"sharedWebCredentialsEnabled\": false\n }\n }\n }\n}'\n" Node example: "const client = new shopify.clients.Graphql({session});\nconst data = await client.query({\n data: {\n \"query\": `mutation UpdateMobilePlatformApplication($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {\n mobilePlatformApplicationUpdate(id: $id, input: $input) {\n mobilePlatformApplication {\n ... on AppleApplication {\n id\n appId\n universalLinksEnabled\n sharedWebCredentialsEnabled\n appClipsEnabled\n appClipApplicationId\n __typename\n }\n }\n userErrors {\n field\n message\n code\n }\n }\n }`,\n \"variables\": {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176032\",\n \"input\": {\n \"apple\": {\n \"appId\": \"com.apple.package\",\n \"appClipsEnabled\": true,\n \"appClipApplicationId\": \"clip.app\",\n \"universalLinksEnabled\": false,\n \"sharedWebCredentialsEnabled\": false\n }\n }\n },\n },\n});\n" Ruby example: "session = ShopifyAPI::Auth::Session.new(\n shop: \"your-development-store.myshopify.com\",\n access_token: access_token\n)\nclient = ShopifyAPI::Clients::Graphql::Admin.new(\n session: session\n)\n\nquery = <<~QUERY\n mutation UpdateMobilePlatformApplication($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {\n mobilePlatformApplicationUpdate(id: $id, input: $input) {\n mobilePlatformApplication {\n ... on AppleApplication {\n id\n appId\n universalLinksEnabled\n sharedWebCredentialsEnabled\n appClipsEnabled\n appClipApplicationId\n __typename\n }\n }\n userErrors {\n field\n message\n code\n }\n }\n }\nQUERY\n\nvariables = {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176032\",\n \"input\": {\n \"apple\": {\n \"appId\": \"com.apple.package\",\n \"appClipsEnabled\": true,\n \"appClipApplicationId\": \"clip.app\",\n \"universalLinksEnabled\": false,\n \"sharedWebCredentialsEnabled\": false\n }\n }\n}\n\nresponse = client.query(query: query, variables: variables)\n" Remix example: "const { admin } = await authenticate.admin(request);\n\nconst response = await admin.graphql(\n `#graphql\n mutation UpdateMobilePlatformApplication($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {\n mobilePlatformApplicationUpdate(id: $id, input: $input) {\n mobilePlatformApplication {\n ... on AppleApplication {\n id\n appId\n universalLinksEnabled\n sharedWebCredentialsEnabled\n appClipsEnabled\n appClipApplicationId\n __typename\n }\n }\n userErrors {\n field\n message\n code\n }\n }\n }`,\n {\n variables: {\n \"id\": \"gid://shopify/MobilePlatformApplication/1066176032\",\n \"input\": {\n \"apple\": {\n \"appId\": \"com.apple.package\",\n \"appClipsEnabled\": true,\n \"appClipApplicationId\": \"clip.app\",\n \"universalLinksEnabled\": false,\n \"sharedWebCredentialsEnabled\": false\n }\n }\n },\n },\n);\n\nconst data = await response.json();\n" Graphql query: "mutation UpdateMobilePlatformApplication($id: ID!, $input: MobilePlatformApplicationUpdateInput!) {\n mobilePlatformApplicationUpdate(id: $id, input: $input) {\n mobilePlatformApplication {\n ... on AppleApplication {\n id\n appId\n universalLinksEnabled\n sharedWebCredentialsEnabled\n appClipsEnabled\n appClipApplicationId\n __typename\n }\n }\n userErrors {\n field\n message\n code\n }\n }\n}" #### Graphql Input { "id": "gid://shopify/MobilePlatformApplication/1066176032", "input": { "apple": { "appId": "com.apple.package", "appClipsEnabled": true, "appClipApplicationId": "clip.app", "universalLinksEnabled": false, "sharedWebCredentialsEnabled": false } } } #### Graphql Response { "data": { "mobilePlatformApplicationUpdate": { "mobilePlatformApplication": { "id": "gid://shopify/MobilePlatformApplication/1066176032", "appId": "com.apple.package", "universalLinksEnabled": false, "sharedWebCredentialsEnabled": false, "appClipsEnabled": true, "appClipApplicationId": "clip.app", "__typename": "AppleApplication" }, "userErrors": [] } } }