younifyd
Menu

Update a shop country assortment (PATCH)

Update a shop country assortment

PATCH/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 (PATCH) action (under Shops).
  3. Fill in the fields below, then reference the result from later steps as {{updateAShopCountryAssortmentPatch.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
includeobject2 fields
excludeobject2 fields
productsobject
includeobject2 fields
excludeobject2 fields
attributesarray<object>

Configuration of attribute includes/excludes.

namestringrequired

The attribute name.

includeobject2 fields
excludeobject2 fields
merchantReferenceKeysobject
includeobject2 fields
excludeobject2 fields
json
{
  "masterCategories": {
    "include": {
      "add": [
        [
          [
            "Fashion",
            "Men",
            "Shirts"
          ]
        ]
      ],
      "remove": [
        [
          [
            "Fashion",
            "Men",
            "Shirts"
          ]
        ]
      ]
    },
    "exclude": {
      "add": [
        [
          [
            "Fashion",
            "Men",
            "Shirts"
          ]
        ]
      ],
      "remove": [
        [
          [
            "Fashion",
            "Men",
            "Shirts"
          ]
        ]
      ]
    }
  },
  "products": {
    "include": {
      "add": [
        0
      ],
      "remove": [
        0
      ]
    },
    "exclude": {
      "add": [
        0
      ],
      "remove": [
        0
      ]
    }
  },
  "attributes": [
    {
      "name": "string",
      "include": {
        "add": [
          "string"
        ],
        "remove": [
          "string"
        ]
      },
      "exclude": {
        "add": [
          "string"
        ],
        "remove": [
          "string"
        ]
      }
    }
  ],
  "merchantReferenceKeys": {
    "include": {
      "add": [
        "string"
      ],
      "remove": [
        "string"
      ]
    },
    "exclude": {
      "add": [
        "string"
      ],
      "remove": [
        "string"
      ]
    }
  }
}

Response

Returns 200 with an object. Read it in later steps with {{updateAShopCountryAssortmentPatch.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.