younifyd
Menu

Update a product image position

Update a product image position

PATCH/products/{productIdentifier}/images/{imageIdentifier}

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Update a product image position action (under Images).
  3. Fill in the fields below, then reference the result from later steps as {{updateAProductImagePosition.response.data}}.

Request

Path parameters

productIdentifieroneOfrequired

Product ID or reference key. If you are using a reference key, it is highly recommended to use the encoded equal sign (%3D) instead of the plain =

imageIdentifieroneOfrequired

Product image ID or reference key. If you are using a reference key, it is highly recommended to use the encoded equal sign (%3D) instead of the plain =

Query parameters

witharray<string>

Comma-separated list of additional properties that should be included in the response. `productLocks` is always included on standalone product-image responses (create, patch, GET list) as ProductImageLocks (`imagePositions` only) and is not controlled by `with`. Nested images under a product response never include `productLocks`.

ignoreImageSortingLocksboolean

If true, requested image positions are applied even when a sorting lock exists. Existing locks are not removed.

Default false

Request body

Enter the body as JSON in the step's Body field.

positionintegerrequired

Position of the image. Counting starts with 0, so when a product image should be on the first position, you have to send 0.

shopCountrySpecificarray<object>

Optional per-shop-country positions. When present, must contain at least one entry.

shopKeystringrequired

A key that uniquely identifies the shop within the tenant's ecosystem.

countryCodestringrequired

ISO 3166-1 alpha-2 country code

positionintegerrequired

Position of the image for this shop-country. Counting starts with 0.

customDataany
productLocksobject
imagePositionsobject2 fields
json
{
  "position": 3,
  "shopCountrySpecific": [
    {
      "shopKey": "ms",
      "countryCode": "de",
      "position": 0
    }
  ],
  "customData": null,
  "productLocks": {
    "imagePositions": {
      "isLocked": false,
      "shopCountrySpecific": [
        {
          "shopKey": "ms",
          "countryCode": "de",
          "isLocked": false
        }
      ]
    }
  }
}

Response

Returns 200 with a any. Read it in later steps with {{updateAProductImagePosition.response.data.<field>}}.

Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.