younifyd
Menu

Get master categories for given filters

Get master categories for given filters

GET/master-categories

Use it in a workflow

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

Request

Query parameters

limitinteger

Maximum number of entities in the result. When fetching entities with children, the limit always applies to the amount of parent entities (max. 1000).

Default 100

filters[id]array<integer>

Comma-separated list of IDs of entities that should be used for filtering.

filters[minId]integer

Minimum (inclusive) ID of entities that should be returned.

filters[maxId]integer

Maximum (inclusive) ID of entities that should be returned.

sortstring

Sort by the provided column.

One ofidDefault "id"

sortDirstring

Sort ascending or descending

One ofascdescDefault "asc"

cursorstring

Valid cursor used for pagination.

Response

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

entitiesarray<object>
idinteger

The ID of the master category created by SCAYLE.

parentIdinteger

The ID of the parent master category if exists.

patharray<string>required

The complete category path.

attributesarray<object>4 fields

List of attributes which are related to this category.

cursorobject
nextstring

The cursor pointing to the next page. If null there is no next page available.

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

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