younifyd
Menu

Update a shop country assortment (PUT)

Update a shop country assortment

PUT/shops/{shopKey}/countries/{countryCode}/assortment

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Update a shop country assortment (PUT) action (under Shops).
  3. Fill in the fields below, then reference the result from later steps as {{updateAShopCountryAssortmentPut.response.data}}.

Request

Path parameters

shopKeystringrequired

The shop key.

countryCodestringrequired

The shop country code; use shop country ID instead of country code when a country is ambiguous within a shop.

Request body

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

masterCategoriesobject
includearray<array<string>>

List of master categories to include.

excludearray<array<string>>

List of master categories to exclude.

productsobject
includearray<integer>

The product IDs to include.

excludearray<integer>

The product IDs to exclude.

attributesarray<object>

Configuration of attribute includes/excludes.

namestring

The attribute name.

includearray<string>

The attribute values to include.

excludearray<string>

The attribute values to exclude.

merchantReferenceKeysobject
includearray<string>

Merchant reference keys to include.

excludearray<string>

Merchant reference keys to exclude.

json
{
  "masterCategories": {
    "include": [
      [
        [
          "Fashion",
          "Men",
          "Shirts"
        ]
      ]
    ],
    "exclude": [
      [
        [
          "Fashion",
          "Men",
          "Shirts"
        ]
      ]
    ]
  },
  "products": {
    "include": [
      0
    ],
    "exclude": [
      0
    ]
  },
  "attributes": [
    {
      "name": "string",
      "include": [
        "string"
      ],
      "exclude": [
        "string"
      ]
    }
  ],
  "merchantReferenceKeys": {
    "include": [
      "string"
    ],
    "exclude": [
      "string"
    ]
  }
}

Response

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

masterCategoriesobject
includearray<array<string>>

List of master categories to include.

excludearray<array<string>>

List of master categories to exclude.

productsobject
includearray<integer>

The product IDs to include.

excludearray<integer>

The product IDs to exclude.

attributesarray<object>

Configuration of attribute includes/excludes.

namestring

The attribute name.

includearray<string>

The attribute values to include.

excludearray<string>

The attribute values to exclude.

merchantReferenceKeysobject
includearray<string>

Merchant reference keys to include.

excludearray<string>

Merchant reference keys to exclude.

json
{
  "masterCategories": {
    "include": [
      [
        [
          "Fashion",
          "Men",
          "Shirts"
        ]
      ]
    ],
    "exclude": [
      [
        [
          "Fashion",
          "Men",
          "Shirts"
        ]
      ]
    ]
  },
  "products": {
    "include": [
      0
    ],
    "exclude": [
      0
    ]
  },
  "attributes": [
    {
      "name": "string",
      "include": [
        "string"
      ],
      "exclude": [
        "string"
      ]
    }
  ],
  "merchantReferenceKeys": {
    "include": [
      "string"
    ],
    "exclude": [
      "string"
    ]
  }
}

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