younifyd
Menu

Create a new product video

Create a new product video

POST/products/{productIdentifier}/videos

Use it in a workflow

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

Query parameters

ignoreAttributeLocksboolean

If set to true, then even locked attributes get updated/deleted.

Default false

ignoreVideoSortingLocksboolean

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

Default false

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`.

Request body

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

idinteger

ID of the ProductVideo assigned by SCAYLE.

referenceKeystringrequired

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

assetUrlstring

URL of the video, this will be set once the video has been uploaded.

formatany
isUploadedboolean

Flag indicating whether the video has been uploaded.

positioninteger

Specifies the position of the video. Counting starts with 0.

shopCountrySpecificarray<object>

Optional per-shop-country positions for this video. 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.

attributesarray<object>

A list of attributes attached to the video.

namestringrequired

The attribute name.

typestringrequired

The attribute type.

One ofsimplesimpleListlocalizedStringlocalizedStringListadvancedadvancedList

valueanyrequired

The attribute value where the datatype is defined by the type property.

isLockedboolean

Specifies if the attribute group should be locked.

shopCountrySpecificarray<object>4 fields

Used to override the attribute value for a specific shop country. Only supported by products, product masters and variants.

customDataany
json
{
  "referenceKey": "my-video",
  "id": 0,
  "assetUrl": "videos/my-video.mp4",
  "format": null,
  "isUploaded": false,
  "position": 0,
  "shopCountrySpecific": [
    {
      "shopKey": "ms",
      "countryCode": "de",
      "position": 0
    }
  ],
  "attributes": [
    {
      "name": "view",
      "type": "simple",
      "value": "360",
      "isLocked": true
    }
  ],
  "customData": null
}

Response

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

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