Categories

catalog Category Repository V1Get Get

get

Get info about category by category id

Path parameters
categoryIdstringRequired

(Required)

Example: <integer>
Query parameters
storeIdstringOptionalExample: <integer>
Responses
200

OK

application/json
Responseobject
get
GET /V1/categories/{categoryId} HTTP/1.1
Host: {{baseurl}}
Accept: */*
{
  "id": "<integer>",
  "parent_id": "<integer>",
  "name": "<string>",
  "is_active": "<boolean>",
  "position": "<integer>",
  "level": "<integer>",
  "children": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "path": "<string>",
  "available_sort_by": [
    "<string>",
    "<string>"
  ],
  "include_in_menu": "<boolean>",
  "extension_attributes": "<object>",
  "custom_attributes": [
    {
      "attribute_code": "eiusmod ",
      "value": "ad Duis"
    },
    {
      "attribute_code": "ea culpa non",
      "value": "velit amet cupidatat voluptat"
    }
  ]
}

catalog Category Repository V1Delete By Identifier Delete

delete

Delete category by identifier

Path parameters
categoryIdstringRequired

(Required)

Example: <integer>
Responses
200

OK

application/json
Responseobject
delete
DELETE /V1/categories/{categoryId} HTTP/1.1
Host: {{baseurl}}
Accept: */*
true

catalog Category Management V1Get Tree Get

get

Retrieve list of categories

Query parameters
rootCategoryIdstringOptionalExample: <integer>
depthstringOptionalExample: <integer>
Responses
200

OK

application/json
Responseobject
get
GET /V1/categories HTTP/1.1
Host: {{baseurl}}
Accept: */*
{
  "parent_id": 26754765,
  "name": "dolor aute dolor",
  "is_active": true,
  "position": -53767669,
  "level": -53523165,
  "product_count": -94612641,
  "children_data": [
    {
      "parent_id": 93169546,
      "name": "veniam",
      "is_active": true,
      "position": 61733533,
      "level": -72806713,
      "product_count": -13820376,
      "children_data": [
        {
          "value": "<Circular reference to #/components/schemas/catalog-data-category-tree-interface detected>"
        },
        {
          "value": "<Circular reference to #/components/schemas/catalog-data-category-tree-interface detected>"
        }
      ],
      "id": 18636963
    },
    {
      "parent_id": 7266434,
      "name": "dolor cupidatat",
      "is_active": false,
      "position": -26625054,
      "level": 32289413,
      "product_count": 99970108,
      "children_data": [
        {
          "value": "<Circular reference to #/components/schemas/catalog-data-category-tree-interface detected>"
        },
        {
          "value": "<Circular reference to #/components/schemas/catalog-data-category-tree-interface detected>"
        }
      ],
      "id": -10762474
    }
  ],
  "id": 58964669
}

catalog Category Repository V1Save Post

post

Create category service

Header parameters
Content-TypestringOptionalExample: application/json
Body
objectOptionalExample: {"category":{"id":"<integer>","parent_id":"<integer>","name":"<string>","is_active":"<boolean>","position":"<integer>","level":"<integer>","children":"<string>","created_at":"<string>","updated_at":"<string>","path":"<string>","available_sort_by":["<string>","<string>"],"include_in_menu":"<boolean>","extension_attributes":"<object>","custom_attributes":[{"attribute_code":"incididunt quis in","value":"culpa deserunt"},{"attribute_code":"dolore in dolore","value":"fugiat in sed Lorem"}]}}
Responses
200

OK

application/json
Responseobject
post
POST /V1/categories HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 491

{
  "category": {
    "id": "<integer>",
    "parent_id": "<integer>",
    "name": "<string>",
    "is_active": "<boolean>",
    "position": "<integer>",
    "level": "<integer>",
    "children": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>",
    "path": "<string>",
    "available_sort_by": [
      "<string>",
      "<string>"
    ],
    "include_in_menu": "<boolean>",
    "extension_attributes": "<object>",
    "custom_attributes": [
      {
        "attribute_code": "incididunt quis in",
        "value": "culpa deserunt"
      },
      {
        "attribute_code": "dolore in dolore",
        "value": "fugiat in sed Lorem"
      }
    ]
  }
}
{
  "id": "<integer>",
  "parent_id": "<integer>",
  "name": "<string>",
  "is_active": "<boolean>",
  "position": "<integer>",
  "level": "<integer>",
  "children": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "path": "<string>",
  "available_sort_by": [
    "<string>",
    "<string>"
  ],
  "include_in_menu": "<boolean>",
  "extension_attributes": "<object>",
  "custom_attributes": [
    {
      "attribute_code": "eiusmod ",
      "value": "ad Duis"
    },
    {
      "attribute_code": "ea culpa non",
      "value": "velit amet cupidatat voluptat"
    }
  ]
}

catalog Category Repository V1Save Put

put

Create category service

Path parameters
idstringRequired

(Required)

Example: <string>
Header parameters
Content-TypestringOptionalExample: application/json
Body
objectOptionalExample: {"category":{"id":"<integer>","parent_id":"<integer>","name":"<string>","is_active":"<boolean>","position":"<integer>","level":"<integer>","children":"<string>","created_at":"<string>","updated_at":"<string>","path":"<string>","available_sort_by":["<string>","<string>"],"include_in_menu":"<boolean>","extension_attributes":"<object>","custom_attributes":[{"attribute_code":"incididunt quis in","value":"culpa deserunt"},{"attribute_code":"dolore in dolore","value":"fugiat in sed Lorem"}]}}
Responses
200

OK

application/json
Responseobject
put
PUT /V1/categories/{id} HTTP/1.1
Host: {{baseurl}}
Content-Type: application/json
Accept: */*
Content-Length: 491

{
  "category": {
    "id": "<integer>",
    "parent_id": "<integer>",
    "name": "<string>",
    "is_active": "<boolean>",
    "position": "<integer>",
    "level": "<integer>",
    "children": "<string>",
    "created_at": "<string>",
    "updated_at": "<string>",
    "path": "<string>",
    "available_sort_by": [
      "<string>",
      "<string>"
    ],
    "include_in_menu": "<boolean>",
    "extension_attributes": "<object>",
    "custom_attributes": [
      {
        "attribute_code": "incididunt quis in",
        "value": "culpa deserunt"
      },
      {
        "attribute_code": "dolore in dolore",
        "value": "fugiat in sed Lorem"
      }
    ]
  }
}
{
  "id": "<integer>",
  "parent_id": "<integer>",
  "name": "<string>",
  "is_active": "<boolean>",
  "position": "<integer>",
  "level": "<integer>",
  "children": "<string>",
  "created_at": "<string>",
  "updated_at": "<string>",
  "path": "<string>",
  "available_sort_by": [
    "<string>",
    "<string>"
  ],
  "include_in_menu": "<boolean>",
  "extension_attributes": "<object>",
  "custom_attributes": [
    {
      "attribute_code": "eiusmod ",
      "value": "ad Duis"
    },
    {
      "attribute_code": "ea culpa non",
      "value": "velit amet cupidatat voluptat"
    }
  ]
}