younifyd
Menu

Update a product video

Update a product video

PATCH/products/{productIdentifier}/videos/{productVideoIdentifier}

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Update a product video action (under Videos).
  3. Fill in the fields below, then reference the result from later steps as {{updateAProductVideo.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 =

productVideoIdentifieroneOfrequired

Product Video ID or video reference key. If you are using a reference key, use the `key=` prefix (URL-encode `=` as %3D when needed).

Query parameters

witharray<string>

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

ignoreVideoSortingLocksboolean

If true, requested video 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 video. Counting starts with 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 video for this shop-country. Counting starts with 0.

customDataany
productLocksobject
videoPositionsobject2 fields
json
{
  "position": 2,
  "shopCountrySpecific": [
    {
      "shopKey": "ms",
      "countryCode": "de",
      "position": 0
    }
  ],
  "customData": null,
  "productLocks": {
    "videoPositions": {
      "isLocked": false,
      "shopCountrySpecific": [
        {
          "shopKey": "ms",
          "countryCode": "de",
          "isLocked": false
        }
      ]
    }
  }
}

Response

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

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