younifyd
Menu

Update an existing product

Update an existing product

PUT/products/{productIdentifier}

Use it in a workflow

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

ignoreMasterIfExistboolean

Ignore master data from the request, if master exists. If set to `true`, and a master product with the given `master.referenceKey` already exists, then the provided master data in the request will be ignored. If set to `false` or not provided, and a master product with the given `master.referenceKey` already exists, the master data in the request will be processed.

Default false

witharray<string>

Comma-separated list of additional properties that should be included in the response.

ignoreAttributeLocksboolean

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

Default false

ignoreCategoryLocksboolean

If set to true, then even locked product categories get updated.

Default false

ignoreImageSortingLocksboolean

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

Default false

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.

idinteger

The ID of the product created by SCAYLE.

createdAtstring (date-time)

Product creation timestamp in UTC.

updatedAtstring (date-time)

Product last update timestamp in UTC.

lastContentUpdatedAtstring (date-time)

Timestamp of the latest content-related product update in UTC.

problemsarray<string>

If product is in problem state, the reasons are listed here.

referenceKeystringrequired

A key that uniquely identifies the product (e.g., a shirt in a specific color) within the tenant's ecosystem.

nameobjectrequired

The localized product name. At least the base language that is configured in SCAYLE is mandatory.

masterobjectrequired

A master product is used for grouping a collection of products (e.g., all colors of a shirt). It defines categories and attributes, which are shared between all products belonging to the same master.

referenceKeystringrequired

A key that uniquely identifies a group of products (e.g., all colors of a shirt) within the tenant's ecosystem.

categoriesobject2 fields
attributesarray<object>5 fields

A list of attributes attached to the master.

statestringrequired

The state of the product determined by the state evaluation process. The only possible values to request are `live`, `draft` and `blocked`. The `problem` state can only be the result of the state evaluation process. If product is in problem state, the reasons are listed in read-only 'problems' field. The `new` and `inApproval` states can be set in the SCAYLE Panel. If a product belongs to multiple merchants, the state is returned based on the hierarchical order live, inApproval, problem, blocked, draft

One oflivedraftproblemnewinApprovalblockedDefault "live"

attributesarray<object>

A list of attributes attached to the product.

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.

variantsarray<object>

A list of product variants attached to the product.

idinteger

ID assigned by SCAYLE.

referenceKeystringrequired

A key that uniquely identifies the variant of a product (usually an SKU) within the tenant's ecosystem.

merchantReferenceKeysarray<string>

A list of merchant reference keys the variant belongs to.

eanstring

An ean that refers to a product variant .

attributesarray<object>5 fields

A list of attributes attached to the product variant.

pricesarray<object>15 fields

A list of prices attached to the product variant.

stocksarray<object>6 fields

The product variant stock information.

customDataany
isCompositeboolean

Indicates whether the variant is composite.

relatedVariantsoneOf

A list of variants that belong to the composite variant. All variants in the list must use the same identification method, either all use variantId or all use variantReferenceKey. Empty arrays are allowed in responses.

imagesarray<object>

A list of product images attached to the product.

idinteger

ID assigned by SCAYLE.

referenceKeystring

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

namestring

User defined name of the image.

mimeTypestring

MIME type identified by SCAYLE.

positioninteger

Specifies the 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>3 fields

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

sourceobject2 fields

Source where to download the asset from. Either URL or attachment.

assetUrlstring

URL of the image, either manually specified or generated by SCAYLE, if the SCAYLE CDN is used.

attributesarray<object>5 fields

A list of attributes attached to the image.

customDataany
videosarray<object>

A list of product videos attached to the product.

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>3 fields

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

attributesarray<object>5 fields

A list of attributes attached to the video.

customDataany
productSortingsarray<object>

A list of product sortings.

productIdinteger

SCAYLE's internal product identifier.

productReferenceKeystring

Tenant provided product identifier.

shopKeystring

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

countryCodestring

ISO 3166 alpha 2 country code.

sortKeystring

The sort key.

sortValueinteger

The value used for sorting.

customDataany
sellableTimeframesarray<object>

A list of product sellable timeframes.

productIdinteger

The ID of the product

shopKeystringrequired

The shop key identifier

countryCodestringrequired

The ISO 3166-1 alpha-2 country code

sellableFromstring (date-time)required

The date and time from which the product is sellable

sellableTostring (date-time)required

The date and time until which the product is sellable

isCompositeboolean

Indicates whether the product is composite.

merchantReferenceKeysarray<string>

A list of merchant reference keys the product belongs to.

similarProductsarray<object>

A list of similar products.

shopKeystringrequired

A key that uniquely identifies the shop within the tenant's ecosystem. Must be **exactly two characters** long.

countryCodestring

ISO 3166 alpha 2 country code.

productIdsarray<integer>required

A list of product identifiers similar to the product.

productLocksobject
imagePositionsobject2 fields
videoPositionsobject2 fields
json
{
  "referenceKey": "M0001-black",
  "name": {
    "de_DE": "Blaues Hemd",
    "en_GB": "Blue Shirt"
  },
  "master": {
    "referenceKey": "M0001",
    "categories": {
      "paths": [
        [
          [
            "Fashion",
            "Men",
            "Shirts"
          ]
        ]
      ],
      "isLocked": false
    },
    "attributes": [
      {
        "name": "string",
        "type": "simple",
        "value": null,
        "isLocked": false,
        "shopCountrySpecific": [
          {
            "shopKey": "ms",
            "countryCode": "DE",
            "value": null,
            "isLocked": false
          }
        ]
      }
    ]
  },
  "state": "live",
  "id": 0,
  "createdAt": "2025-01-01T00:00:00Z",
  "updatedAt": "2025-01-01T00:00:00Z",
  "lastContentUpdatedAt": "2025-01-01T00:00:00Z",
  "problems": [
    "system: product has no image"
  ],
  "attributes": [
    {
      "name": "string",
      "type": "simple",
      "value": null,
      "isLocked": false,
      "shopCountrySpecific": [
        {
          "shopKey": "ms",
          "countryCode": "DE",
          "value": null,
          "isLocked": false
        }
      ]
    }
  ],
  "variants": [
    {
      "referenceKey": "M0001-black-M",
      "id": 0,
      "merchantReferenceKeys": [
        "string"
      ],
      "ean": "0000007619991",
      "attributes": [
        {
          "name": "size",
          "type": "simple",
          "value": "M",
          "isLocked": false
        }
      ],
      "prices": [
        {
          "price": 9999,
          "tax": 19,
          "countryCode": "DE",
          "currencyCode": "EUR",
          "key": "1-100",
          "oldPrice": 10999,
          "recommendedRetailPrice": 9999,
          "buyingPrice": 9999,
          "groupKey": "myPriceGroup",
          "promotionKey": "myPromotion",
          "unitPrice": {
            "unit": "ml",
            "amount": 100,
            "price": 999
          },
          "validFrom": "2021-09-23T11%3A30%3A58%2B00%3A00"
        }
      ],
      "stocks": [
        {
          "quantity": 27,
          "warehouseReferenceKey": "DefaultWarehouse",
          "changedAt": "2020-07-23T11%3A30%3A58%2B00%3A00",
          "sellableWithoutStock": true,
          "merchantReferenceKey": "string",
          "expectedAvailabilityAt": "2020-07-23"
        }
      ],
      "customData": null,
      "isComposite": false,
      "relatedVariants": null
    }
  ],
  "images": [
    {
      "id": 0,
      "referenceKey": "my_original_name.jpg",
      "name": "image.jpg",
      "mimeType": "string",
      "position": 3,
      "shopCountrySpecific": [
        {
          "shopKey": "ms",
          "countryCode": "de",
          "position": 0
        }
      ],
      "source": {
        "url": "https://example.com/image.png",
        "attachment": "U3dhZ2dlciByb2Nrcw=="
      },
      "assetUrl": "images/my_image.jpg",
      "attributes": [
        {
          "name": "view",
          "type": "simple",
          "value": "front",
          "isLocked": true
        }
      ],
      "customData": null
    }
  ]
}

Response

Returns 200 with an object. Read it in later steps with {{updateAnExistingProduct.response.data.<field>}}.

idinteger

The ID of the product created by SCAYLE.

createdAtstring (date-time)

Product creation timestamp in UTC.

updatedAtstring (date-time)

Product last update timestamp in UTC.

lastContentUpdatedAtstring (date-time)

Timestamp of the latest content-related product update in UTC.

problemsarray<string>

If product is in problem state, the reasons are listed here.

referenceKeystring

A key that uniquely identifies the product (e.g., a shirt in a specific color) within the tenant's ecosystem.

nameobject

The localized product name. At least the base language that is configured in SCAYLE is mandatory.

masterobject

A master product is used for grouping a collection of products (e.g., all colors of a shirt). It defines categories and attributes, which are shared between all products belonging to the same master.

referenceKeystringrequired

A key that uniquely identifies a group of products (e.g., all colors of a shirt) within the tenant's ecosystem.

categoriesobject2 fields
attributesarray<object>5 fields

A list of attributes attached to the master.

statestring

The state of the product determined by the state evaluation process. The only possible values to request are `live`, `draft` and `blocked`. The `problem` state can only be the result of the state evaluation process. If product is in problem state, the reasons are listed in read-only 'problems' field. The `new` and `inApproval` states can be set in the SCAYLE Panel. If a product belongs to multiple merchants, the state is returned based on the hierarchical order live, inApproval, problem, blocked, draft

One oflivedraftproblemnewinApprovalblockedDefault "live"

attributesarray<object>

A list of attributes attached to the product.

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.

variantsarray<object>

A list of product variants attached to the product.

idinteger

ID assigned by SCAYLE.

referenceKeystringrequired

A key that uniquely identifies the variant of a product (usually an SKU) within the tenant's ecosystem.

merchantReferenceKeysarray<string>

A list of merchant reference keys the variant belongs to.

eanstring

An ean that refers to a product variant .

attributesarray<object>5 fields

A list of attributes attached to the product variant.

pricesarray<object>15 fields

A list of prices attached to the product variant.

stocksarray<object>6 fields

The product variant stock information.

customDataany
isCompositeboolean

Indicates whether the variant is composite.

relatedVariantsoneOf

A list of variants that belong to the composite variant. All variants in the list must use the same identification method, either all use variantId or all use variantReferenceKey. Empty arrays are allowed in responses.

imagesarray<object>

A list of product images attached to the product.

idinteger

ID assigned by SCAYLE.

referenceKeystring

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

namestring

User defined name of the image.

mimeTypestring

MIME type identified by SCAYLE.

positioninteger

Specifies the 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>3 fields

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

sourceobject2 fields

Source where to download the asset from. Either URL or attachment.

assetUrlstring

URL of the image, either manually specified or generated by SCAYLE, if the SCAYLE CDN is used.

attributesarray<object>5 fields

A list of attributes attached to the image.

customDataany
videosarray<object>

A list of product videos attached to the product.

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>3 fields

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

attributesarray<object>5 fields

A list of attributes attached to the video.

customDataany
productSortingsarray<object>

A list of product sortings.

productIdinteger

SCAYLE's internal product identifier.

productReferenceKeystring

Tenant provided product identifier.

shopKeystring

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

countryCodestring

ISO 3166 alpha 2 country code.

sortKeystring

The sort key.

sortValueinteger

The value used for sorting.

customDataany
sellableTimeframesarray<object>

A list of product sellable timeframes.

productIdinteger

The ID of the product

shopKeystringrequired

The shop key identifier

countryCodestringrequired

The ISO 3166-1 alpha-2 country code

sellableFromstring (date-time)required

The date and time from which the product is sellable

sellableTostring (date-time)required

The date and time until which the product is sellable

isCompositeboolean

Indicates whether the product is composite.

merchantReferenceKeysarray<string>

A list of merchant reference keys the product belongs to.

similarProductsarray<object>

A list of similar products.

shopKeystringrequired

A key that uniquely identifies the shop within the tenant's ecosystem. Must be **exactly two characters** long.

countryCodestring

ISO 3166 alpha 2 country code.

productIdsarray<integer>required

A list of product identifiers similar to the product.

productLocksobject
imagePositionsobject2 fields
videoPositionsobject2 fields
json
{
  "referenceKey": "M0001-black",
  "name": {
    "de_DE": "Blaues Hemd",
    "en_GB": "Blue Shirt"
  },
  "master": {
    "referenceKey": "M0001",
    "categories": {
      "paths": [
        [
          [
            "Fashion",
            "Men",
            "Shirts"
          ]
        ]
      ],
      "isLocked": false
    },
    "attributes": [
      {
        "name": "string",
        "type": "simple",
        "value": null,
        "isLocked": false,
        "shopCountrySpecific": [
          {
            "shopKey": "ms",
            "countryCode": "DE",
            "value": null,
            "isLocked": false
          }
        ]
      }
    ]
  },
  "state": "live",
  "id": 0,
  "createdAt": "2025-01-01T00:00:00Z",
  "updatedAt": "2025-01-01T00:00:00Z",
  "lastContentUpdatedAt": "2025-01-01T00:00:00Z",
  "problems": [
    "system: product has no image"
  ],
  "attributes": [
    {
      "name": "string",
      "type": "simple",
      "value": null,
      "isLocked": false,
      "shopCountrySpecific": [
        {
          "shopKey": "ms",
          "countryCode": "DE",
          "value": null,
          "isLocked": false
        }
      ]
    }
  ],
  "variants": [
    {
      "referenceKey": "M0001-black-M",
      "id": 0,
      "merchantReferenceKeys": [
        "string"
      ],
      "ean": "0000007619991",
      "attributes": [
        {
          "name": "size",
          "type": "simple",
          "value": "M",
          "isLocked": false
        }
      ],
      "prices": [
        {
          "price": 9999,
          "tax": 19,
          "countryCode": "DE",
          "currencyCode": "EUR",
          "key": "1-100",
          "oldPrice": 10999,
          "recommendedRetailPrice": 9999,
          "buyingPrice": 9999,
          "groupKey": "myPriceGroup",
          "promotionKey": "myPromotion",
          "unitPrice": {
            "unit": "ml",
            "amount": 100,
            "price": 999
          },
          "validFrom": "2021-09-23T11%3A30%3A58%2B00%3A00"
        }
      ],
      "stocks": [
        {
          "quantity": 27,
          "warehouseReferenceKey": "DefaultWarehouse",
          "changedAt": "2020-07-23T11%3A30%3A58%2B00%3A00",
          "sellableWithoutStock": true,
          "merchantReferenceKey": "string",
          "expectedAvailabilityAt": "2020-07-23"
        }
      ],
      "customData": null,
      "isComposite": false,
      "relatedVariants": null
    }
  ],
  "images": [
    {
      "id": 0,
      "referenceKey": "my_original_name.jpg",
      "name": "image.jpg",
      "mimeType": "string",
      "position": 3,
      "shopCountrySpecific": [
        {
          "shopKey": "ms",
          "countryCode": "de",
          "position": 0
        }
      ],
      "source": {
        "url": "https://example.com/image.png",
        "attachment": "U3dhZ2dlciByb2Nrcw=="
      },
      "assetUrl": "images/my_image.jpg",
      "attributes": [
        {
          "name": "view",
          "type": "simple",
          "value": "front",
          "isLocked": true
        }
      ],
      "customData": null
    }
  ]
}

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