Contains all the categories that are required for a specific site.
| Value | Description | ||||||
|---|---|---|---|---|---|---|---|
|
name Type: string Required |
Name of the category. Example: Women's Apparels |
||||||
|
alias Type: string |
A unique handler string for a categories. Automatically generated from the name of categories. Example: women-apparels |
||||||
|
description Type: string |
Brief description about the category. Example: A variety of women products. |
||||||
|
images Type: array |
Multiple images related to the category. Example:
|
||||||
|
parent Type: string |
Parent category (if any) of the category. Example: Apparels |
||||||
|
count Type: string Read Only |
Number of products saved under the category. |
||||||
|
SEO Type: object |
Contains SEO variables like title, description, keywords, canonical url and sitemap priority. Example:
|
||||||
|
metafield_sets Type: array |
Meta fields to be used in case extend entity is used. |
||||||
|
publish Type: string |
Flag that determines if a category is published i.e. visible to users. |
||||||
|
default_sort_order Type: string |
Order by which a category's children will be sorted. Example: By date: Newest to oldest |
| Name | Routes |
|---|---|
| add | post /api/1/entity/ms.categories TRY IT ! |
| edit | put /api/1/entity/ms.categories/{_id} TRY IT ! |
| list | get /api/1/entity/ms.categories TRY IT ! |
| get | get /api/1/entity/ms.categories/{_id} TRY IT ! |
| delete | delete /api/1/entity/ms.categories/{_id} TRY IT ! |
| duplicate | put /api/1/entity/ms.categories/{_id}/_duplicate TRY IT ! |