Categories
Get info about category by category id
Path parameters
categoryIdstringRequiredExample:
(Required)
<integer>
Query parameters
storeIdstringOptionalExample:
<integer>
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
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"
}
]
}
Delete category by identifier
Path parameters
categoryIdstringRequiredExample:
(Required)
<integer>
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
delete
DELETE /V1/categories/{categoryId} HTTP/1.1
Host: {{baseurl}}
Accept: */*
true
Retrieve list of categories
Query parameters
rootCategoryIdstringOptionalExample:
<integer>
depthstringOptionalExample:
<integer>
Responses
200
OK
application/json
Responseobject
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
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
}
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
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
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"
}
]
}
Create category service
Path parameters
idstringRequiredExample:
(Required)
<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
400
Bad Request
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
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"
}
]
}