younifyd
Menu

Get master category by ID

Get master category by ID

GET/master-categories/{masterCategoryId}

Use it in a workflow

  1. Add a step and choose the SCAYLE Admin connector.
  2. Pick the Get master category by ID action (under MasterCategories).
  3. Fill in the fields below, then reference the result from later steps as {{getMasterCategoryById.response.data}}.

Request

Path parameters

masterCategoryIdintegerrequired

Master category ID

Response

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

idinteger

The ID of the master category created by SCAYLE.

parentIdinteger

The ID of the parent master category if exists.

patharray<string>

The complete category path.

attributesarray<object>

List of attributes which are related to this category.

namestringrequired

The attribute name.

typestringrequired

The attribute type.

One ofsimplesimpleListlocalizedStringlocalizedStringListadvancedadvancedList

isMandatorybooleanrequired

Whether the attribute is mandatory or not. Used in the state *calculation*.

defaultValueany

The default value of the attribute if it is mandatory. Used in all attribute related processes if that specific attribute is not provided.

json
{
  "path": [
    "Women",
    "Fashion",
    "Shirts"
  ],
  "id": 2,
  "parentId": 1,
  "attributes": [
    {
      "name": "color",
      "type": "simple",
      "isMandatory": false,
      "defaultValue": null
    }
  ]
}

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

Get master category by ID — SCAYLE Admin — Documentation