younifyd
Menu

Get categories/attributes

Get categories/attributes

GET/V1/categories/attributes

Use it in a workflow

  1. Add a step and choose the Adobe Commerce connector.
  2. Pick the Get categories/attributes action (under Categories).
  3. Fill in the fields below, then reference the result from later steps as {{getCategoriesAttributes.response.data}}.

Request

Query parameters

searchCriteria[filterGroups][0][filters][0][field]string

Field

searchCriteria[filterGroups][0][filters][0][value]string

Value

searchCriteria[filterGroups][0][filters][0][conditionType]string

Condition type

searchCriteria[sortOrders][0][field]string

Sorting field.

searchCriteria[sortOrders][0][direction]string

Sorting direction.

searchCriteria[pageSize]integer

Page size.

searchCriteria[currentPage]integer

Current page.

Response

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

itemsarray<object>

Attributes list.

is_wysiwyg_enabledboolean

WYSIWYG flag

is_html_allowed_on_frontboolean

The HTML tags are allowed on the frontend

used_for_sort_byboolean

It is used for sorting in product listing

is_filterableboolean

It used in layered navigation

is_filterable_in_searchboolean

It is used in search results layered navigation

is_used_in_gridboolean

It is used in catalog product grid

is_visible_in_gridboolean

It is visible in catalog product grid

is_filterable_in_gridboolean

It is filterable in catalog product grid

positioninteger

Position

apply_toarray<string>

Apply to value for the element

is_searchablestring

The attribute can be used in Quick Search

is_visible_in_advanced_searchstring

The attribute can be used in Advanced Search

is_comparablestring

The attribute can be compared on the frontend

is_used_for_promo_rulesstring

The attribute can be used for promo rules

is_visible_on_frontstring

The attribute is visible on the frontend

used_in_product_listingstring

The attribute can be used in product listing

is_visibleboolean

Attribute is visible on frontend.

scopestring

Attribute scope

extension_attributesobject

ExtensionInterface class for @see \Magento\Catalog\Api\Data\EavAttributeInterface

attribute_idinteger

Id of the attribute.

attribute_codestringrequired

Code of the attribute.

frontend_inputstringrequired

HTML for input element.

entity_type_idstringrequired

Entity type id

is_requiredbooleanrequired

Attribute is required.

optionsarray<object>5 fields

Options of the attribute (key => value pairs for select)

is_user_definedboolean

Current attribute has been defined by a user.

default_frontend_labelstring

Frontend label for default store

frontend_labelsarray<object>required2 fields

Frontend label for each store

notestring

The note attribute for the element.

backend_typestring

Backend type.

backend_modelstring

Backend model

source_modelstring

Source model

default_valuestring

Default value for the element.

is_uniquestring

This is a unique attribute

frontend_classstring

Frontend class of attribute

validation_rulesarray<object>2 fields

Validation rules.

custom_attributesarray<object>2 fields

Custom attributes values.

search_criteriaobject

Search criteria interface.

filter_groupsarray<object>required1 fields

A list of filter groups.

sort_ordersarray<object>2 fields

Sort order.

page_sizeinteger

Page size.

current_pageinteger

Current page.

total_countinteger

Total count.

json
{
  "items": [
    {
      "attribute_code": "string",
      "frontend_input": "string",
      "entity_type_id": "string",
      "is_required": false,
      "frontend_labels": [
        {
          "store_id": 0,
          "label": "string"
        }
      ],
      "is_wysiwyg_enabled": false,
      "is_html_allowed_on_front": false,
      "used_for_sort_by": false,
      "is_filterable": false,
      "is_filterable_in_search": false,
      "is_used_in_grid": false,
      "is_visible_in_grid": false
    }
  ],
  "search_criteria": {
    "filter_groups": [
      {
        "filters": [
          {
            "field": "string",
            "value": "string",
            "condition_type": "string"
          }
        ]
      }
    ],
    "sort_orders": [
      {
        "field": "string",
        "direction": "string"
      }
    ],
    "page_size": 0,
    "current_page": 0
  },
  "total_count": 0
}

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