Skip to content

Category update

non-empty
guidstring, <= 36 characters(typeGuid)^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$

Category GUID. Must be unique if set. Optional.

Example:"1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed"
namestring, [ 1 .. 255 ] characters

Category name. Optional.

Example:"Watches"
parentGuidstring or null, <= 36 characters(typeGuidNullable)^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$

Parent category GUID. Category must exist if set. Optional.

Example:"1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed"
descriptionstring or null

Category description. Max length 65535 bytes. Optional.

Example:"<p>Top category description</p>"
secondDescriptionstring or null

Bottom category description. Max length 65535 bytes. Optional.

Example:"<p>Bottom category description</p>"
sourceImageNamestring or null, <= 255 characters(typeFilenameNullable)^[0-9a-zA-Z_\-.]+$

Name of file in Files upload storage to be set as category image.

Example:"image.png"
sortBeforestring, <= 36 characters(typeGuid)^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$

Guid of category before which you want to move the category from the request. Not possible to use with sortAfter. Optional.

Example:"1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed"
sortAfterstring, <= 36 characters(typeGuid)^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$

Guid of category after which you want to move the category from the request. Not possible to use with sortBefore. Optional.

Example:"1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed"
indexNamestring, non-empty

Last part of url. Optional, generated from name if not set.

Example:"watches"
menuTitlestring or null, [ 1 .. 255 ] characters

Label for menu. Optional.

Example:"Watches"
titlestring or null, [ 1 .. 255 ] characters

Meta tag title. Optional.

Example:"Watches"
metaTagDescriptionstring or null

Meta tag description. Optional.

Example:"Watches, Apple watch, black, white, garmin"
visibleboolean

Whether the category is visible. Optional, default true.

Example:true
customerVisibilitystring

defines users of the e-shop who can see the category - all = all (default), registered = registered users, unregistered = non-registered users. Optional.

Enum:"all""registered""unregistered""admin-only"
Example:"all"
productOrderingstring

defines how products are sorted in a category; see also Sorting of products in category code list

Enum:"default""most-selling""cheapest""most-expensive""oldest""newest""alphabetically""alphabetically-desc""product-code""product-code-desc"
Example:"alphabetically"
similarProductsCategorystring or null, <= 36 characters(typeGuidNullable)^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$

Similar category guid. Optional.

Example:"1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed"
relatedProductsCategorystring or null, <= 36 characters(typeGuidNullable)^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$

Related category guid. Optional.

Example:"1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed"
languagestring

language of entity (available only if module foreignLanguages is active and initialized)

Example:"cs"
imageNamestring or nulldeprecated

Category image. File must exist on the server. Optional. (Use sourceImageName instead)

Example:"watches-category-image.jpg"
{ "language": "cs", "guid": "1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed", "name": "Watches", "parentGuid": "1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed", "description": "<p>Top category description</p>", "secondDescription": "<p>Bottom category description</p>", "imageName": "watches-category-image.jpg", "sourceImageName": "image.png", "sortBefore": "1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed", "sortAfter": "1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed", "indexName": "watches", "menuTitle": "Watches", "title": "Watches", "metaTagDescription": "Watches, Apple watch, black, white, garmin", "visible": true, "customerVisibility": "all", "productOrdering": "alphabetically", "similarProductsCategory": "1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed", "relatedProductsCategory": "1b02cb8e-d7b5-11e0-9a5c-feab5ed617ed" }