younifyd
Menu

Update the master categories of product master

Update the master categories of product master

PUT/product-masters/{productMasterIdentifier}/master-categories

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Update the master categories of product master action (under ProductMaster).
  3. Fill in the fields below, then reference the result from later steps as {{updateTheMasterCategoriesOfProductMaster.response.data}}.

Request

Path parameters

productMasterIdentifieroneOfrequired

You can either pass the ID of a product master or its reference key. When using a reference key, it must be provided in the format `key=<referenceKey>` (for example `key=M0001-black`). It is highly recommended to encode the equal sign as `%3D` instead of using a plain `=`, for example `key%3DM0001-black`.

Query parameters

ignoreCategoryLocksboolean

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

Default false

Request body

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

isLockedboolean

Specifies if the product categories were locked via the SCAYLE Panel.

pathsarray<array<string>>required

The master category paths.

json
{
  "paths": [
    [
      [
        "Fashion",
        "Men",
        "Shirts"
      ]
    ]
  ],
  "isLocked": false
}

Response

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

entitiesarray<object>
isLockedboolean

Specifies if the product categories were locked via the SCAYLE Panel.

pathsarray<array<string>>required

The master category paths.

json
{
  "entities": [
    {
      "paths": [
        [
          [
            "Fashion",
            "Men",
            "Shirts"
          ]
        ]
      ],
      "isLocked": false
    }
  ]
}

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

Update the master categories of product master — SCAYLE Admin — Documentation