younifyd
Menu

Create categories

Create categories

POST/V1/categories

Use it in a workflow

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

Fields

baseUrlstring

The API host this action calls. Override to point at a different environment.

Default "/rest/default"

bodystring

The request body content (for POST, PUT, PATCH requests).

forwardAllHeadersboolean

If enabled, all headers from the incoming request will be forwarded. Additional headers below will override forwarded ones.

Default false

headerskeyvalue

Extra HTTP headers to include, beyond what this action already declares. These override forwarded or declared headers with the same name.

queryParamskeyvalue

Extra URL query parameters to include, beyond what this action already declares. These override declared query parameters with the same name.

Response

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

idinteger

Category id.

parent_idinteger

Parent category ID

namestring

Category name

is_activeboolean

Whether category is active

positioninteger

Category position

levelinteger

Category level

childrenstring

Children ids comma separated.

created_atstring

Category creation date and time.

updated_atstring

Category last update date and time.

pathstring

Category full path.

available_sort_byarray<string>

Available sort by for category.

include_in_menuboolean

Category is included in menu.

extension_attributesobject

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

custom_attributesarray<object>

Custom attributes values.

attribute_codestringrequired

Attribute code

valuestringrequired

Attribute value

json
{
  "id": 0,
  "parent_id": 0,
  "name": "string",
  "is_active": false,
  "position": 0,
  "level": 0,
  "children": "string",
  "created_at": "string",
  "updated_at": "string",
  "path": "string",
  "available_sort_by": [
    "string"
  ],
  "include_in_menu": false
}

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

Create categories — Adobe Commerce — Documentation