For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dev Portal
DocsAPI ReferenceLearnCommunityChangelog
DocsAPI ReferenceLearnCommunityChangelog
    • About Our APIs
  • REST
    • Overview
  • GraphQL
    • Overview
          • MUTcreateAppExtension
          • MUTupdateAppExtension
          • MUTdeleteAppExtension
          • MUTcreateChannel
          • MUTremoveProductBasicInformationOverrides
          • MUTremoveProductSeoInformationOverrides
          • MUTremoveProductOptionsOverrides
          • MUTremoveProductStorefrontDetailsOverrides
          • MUTremoveProductPreOrderSettingsOverrides
          • MUTsetProductBasicInformation
          • MUTsetProductIsFeatured
          • MUTremoveProductIsFeaturedOverride
          • MUTsetProductSeoInformation
          • MUTsetProductStorefrontDetails
          • MUTsetProductPreOrderSettings
          • MUTsetProductOptionsInformation
          • MUTsetProductUrlPath
          • MUTremoveProductUrlPathOverride
          • MUTsetProductModifiersInformation
          • MUTremoveProductModifiersOverrides
          • MUTremoveProductCustomFieldsOverrides
          • MUTupdateProductCustomFields
          • MUTaddImagesToProduct
          • MUTremoveImagesFromProduct
          • MUTupdateProductImageProperties
          • MUTremoveProductImagePropertiesOverrides
          • MUTsetSharedProductModifiersInformation
          • MUTremoveSharedProductModifiersOverrides
          • MUTsetSharedProductOptionsInformation
          • MUTremoveSharedProductOptionsOverrides
          • MUTsettings
          • MUTupdateTranslations
          • MUTdeleteTranslations
          • MUTaddLocale
          • MUTdeleteLocale
          • MUTupdateLocale
          • MUTcreateEventBridgeWebhook
          • MUTcreatePubSubWebhook
          • MUTupdatePubSubWebhook
          • MUTupdateEventBridgeWebhook
          • MUTcreateHttpsWebhook
          • MUTdeleteWebhook
          • MUTupdateHttpsWebhook
          • MUTcreateMetafield
          • MUTupdateMetafield
          • MUTdeleteMetafield
          • MUTreassignMetafieldsOwner
  • MCP
    • Overview
Dev Portal
LogoLogo
GraphQLAdminMutations

addImagesToProduct

Example Query
1mutation ExampleMutation($input: AddImagesToProductInput) {
2 addImagesToProduct(input: $input) {
3 images {
4 pageInfo
5 edges
6 collectionInfo
7 }
8 }
9}
Variables
1{
2 "input": {
3 "productId": "example",
4 "context": {
5 "channelId": "example",
6 "locale": "example"
7 },
8 "ids": [
9 "example"
10 ]
11 }
12}
Example response
1{
2 "data": {
3 "addImagesToProduct": {
4 "images": {
5 "pageInfo": {
6 "hasNextPage": null,
7 "hasPreviousPage": null,
8 "startCursor": null,
9 "endCursor": null
10 },
11 "edges": [
12 {
13 "node": null,
14 "cursor": null
15 }
16 ],
17 "collectionInfo": {
18 "totalItems": null
19 }
20 }
21 }
22 }
23}
Adds images to a product.
Was this page helpful?
Previous

updateProductCustomFields

Next

removeImagesFromProduct

Built with

Arguments

inputAddImagesToProductInputRequired

Returns

an optional AddImagesToProductResult
imagesProductImageConnection
The images list with added and removed images.