Skip to content

Commit

Permalink
clarify language
Browse files Browse the repository at this point in the history
  • Loading branch information
bc-andreadao committed Oct 7, 2024
1 parent 848b733 commit 9d7b18f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/store-operations/catalog/graphql-admin/product-images.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
This feature is currently in Open Beta.
</Callout>

Using the Catalog features of the Admin API, you can set and query product images.
Using the Catalog features of the Admin API, you can set and query information for product images.

First [add the image to the product](#add-image-to-product) for the global store and a channel locale.
First, [add the image to the product](#add-image-to-product) for the global store and a channel locale.

You can then perform the following:
- [Set product image information](#set-product-image-information) for the catalog. You can create global values and overrides for the product's image in a channel locale.
- [Remove overrides for the product's image in a channel locale](#remove-product-image-information-for-a-locale). A channel then inherits global values.
- [Remove overrides for the product's image in a channel locale](#remove-product-image-overrides-for-a-locale). A channel then inherits global values.
- [Query product image information](#query-product-image-information), those set at the global level and the overrides.

For a full schema, see the [GraphQL Admin API reference](https://developer.bigcommerce.com/graphql-admin/reference).
Expand All @@ -23,9 +23,9 @@ Setting or removing information requires that you specify ID fields in the input

## Add image to product

The following example adds images to a product for a channel locale. To add the image to a product for the global store, don't include the `context` field in the `input`.
The following example adds images to a product for a channel locale. To add the image to a product for the global store, remove the `context` field from the `input`.

You can also remove images from a product and
You can remove images from a product using the `removeImagesFromProduct` node.

<Tabs items={['Request', 'Response']}>
<Tab>
Expand Down Expand Up @@ -280,14 +280,14 @@ To set global store information, remove the `overrides` field from the input.
</Tabs>


## Remove product image information for a locale
## Remove product image overrides for a locale

The following example removes product image information for the channel locale.
The following example removes product image overrides for the channel locale.

<Tabs items={['Request', 'Response']}>
<Tab>

```graphql filename="Example mutation: Remove product image information for a locale" showLineNumbers copy
```graphql filename="Example mutation: Remove product image overrides for a locale" showLineNumbers copy
POST https://api.bigcommerce.com/stores/{{STORE_HASH}}/graphql
X-Auth-Token: {{ACCESS_TOKEN}}
Content-Type: application/json
Expand Down Expand Up @@ -353,7 +353,7 @@ The following example removes product image information for the channel locale.
</Tab>
<Tab>

```json filename="Example mutation: Remove product image information for a locale" showLineNumbers copy
```json filename="Example mutation: Remove product image overrides for a locale" showLineNumbers copy
{
"data": {
"product": {
Expand Down

0 comments on commit 9d7b18f

Please sign in to comment.