Categories
Add Category
post /sites/{siteid}/categories{ "title": "Street Classics", "categoryparentid": 5}
68
HTTP Status Code Summary | |
---|---|
200 | Returns categoryid |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get Categories
get /sites/{siteid}/categoriesThe index of the item to start from
The number of items returned
Comma separated list of fields to return. Use this to query only the fields you are using. Default is all fields in category.
{ "totalcount": 40, "items": [ { "categoryid": 1, "categoryparentid": null, "visible": true, "sortorder": 1, "custom1": "", "custom2": "", "friendly": "living-room", "seo_title": "Feel the inspiration for a new living room", "seo_keywords": "furniture, sofas, living room", "seo_description": "Feel the inspiration for a new living room.\nDiscover Home & Furnishing!", "title": "Living Room", "datecreated": 1353477229, "datemodified": 1354108348 }, { "categoryid": 2, "categoryparentid": null, "visible": true, "sortorder": 5, "custom1": "", "custom2": "", "friendly": "brand", "seo_title": "", "seo_keywords": "", "seo_description": "", "title": "Brand", "datecreated": 1353477229, "datemodified": 1354108461 } ]}
HTTP Status Code Summary | |
---|---|
200 | Returns an envelope with items of type category. |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Get Category
get /sites/{siteid}/categories/{categoryid}{ "categoryid": 68, "categoryparentid": 5, "visible": true, "sortorder": 3, "custom1": "", "custom2": "", "friendly": "street-classics", "seo_title": "", "seo_keywords": "", "seo_description": "", "title": "Street Classics", "datecreated": 1550669773, "datemodified": 1550669773}
HTTP Status Code Summary | |
---|---|
200 | Returns an item of type category. |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Update Category
put /sites/{siteid}/categories/{categoryid}{ "title": "Jeans"}
true
HTTP Status Code Summary | |
---|---|
200 | Returns true |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Delete Category
delete /sites/{siteid}/categories/{categoryid}Note that any descendants of the category being deleted will also be deleted!
true
HTTP Status Code Summary | |
---|---|
200 | Returns true |
400 | Bad Request. Invalid syntax, missing required argument or invalid request. |
401 | Unauthorized. Authorization failed. |
404 | Resource not found. The url is invalid. |
429 | Too Many Requests. |
500 | Internal Server Error. |
Objects
categoryobject
Categories are the menu items for the webshop and can also be used as containers for products.
The category ID.
The parent category ID or null for top level.
Indicates whether the category is shown in menus or not.
Index for this category among siblings. Zero based.
Custom field 1.
Custom field 2.
Friendly name. Absolute url = site url + friendly.
Used for the html title element. If empty the title field will be used instead.
Meta keywords.
Meta description.
Title of category.
Timestamp when this category was created.
Timestamp when this category was last modified.
timestampinteger
Number of seconds since the Unix Epoch.