# Product category update Updates existing category. Endpoint: PATCH /api/categories/{categoryGuid} Version: 1.0.0 Security: shoptetAccessToken, shoptetPrivateApiToken ## Path parameters: - `categoryGuid` (string, required) Category's guid Example: "bffa3b98-d968-11e0-b04f-57a43310b728" ## Header parameters: - `Content-Type` (string, required) ## Request fields (application/json): - `data` (object, required) - `data.guid` (string) Category GUID. Must be unique if set. Optional. - `data.name` (string) Category name. Optional. - `data.parentGuid` (string,null) Parent category GUID. Category must exist if set. Optional. - `data.description` (string,null) Category description. Max length 65535 bytes. Optional. - `data.secondDescription` (string,null) Bottom category description. Max length 65535 bytes. Optional. - `data.sourceImageName` (string,null) Name of file in [Files upload](#section/basic-principles/files-upload) storage to be set as category image. - `data.sortBefore` (string) Guid of category before which you want to move the category from the request. Not possible to use with . Optional. - `data.sortAfter` (string) Guid of category after which you want to move the category from the request. Not possible to use with . Optional. - `data.indexName` (string) Last part of url. Optional, generated from name if not set. - `data.menuTitle` (string,null) Label for menu. Optional. - `data.title` (string,null) Meta tag title. Optional. - `data.metaTagDescription` (string,null) Meta tag description. Optional. - `data.visible` (boolean) Whether the category is visible. Optional, default . - `data.customerVisibility` (string) defines users of the e-shop who can see the category - = all (default), = registered users, = non-registered users. Optional. Enum: "all", "registered", "unregistered" - `data.productOrdering` (string) defines how products are sorted in a category; see also [Sorting of products in category](#section/code-lists/sorting-of-products-in-category) code list Enum: "default", "most-selling", "cheapest", "most-expensive", "oldest", "newest", "alphabetically", "alphabetically-desc", "product-code", "product-code-desc", "category-priority", "category-priority-desc" - `data.similarProductsCategory` (string,null) Similar category guid. Optional. - `data.relatedProductsCategory` (string,null) Related category guid. Optional. - `data.imageName` (string,null) Category image. File must exist on the server. Optional. (Use instead) ## Response 200 fields (application/json): - `data` (object, required) - `data.guid` (string,null, required) unique category identificator - `data.name` (string, required) category name - `data.image` (string,null, required) header image (can be ) - `data.description` (string,null, required) top category description (can be ) - `data.secondDescription` (string,null, required) bottom category description (can be ) - `data.indexName` (string, required) ending part of category URL - `data.url` (string, required) category URL in the e-shop - `data.parentGuid` (string,null, required) unique identifier of the parent category (, if there is no parent category) - `data.priority` (number,null, required) priority (specifies the order of categories) - `data.menuTitle` (string,null, required) category name in the e-shop menu - `data.title` (string,null, required) HTML title element in the HTML header of the category page - `data.metaTagDescription` (string,null, required) HTML META header in category page - `data.visible` (boolean, required) flag, whether the category is visible - `data.similarProductsCategory` (string,null, required) GUID category, in which the products are similar to this category (can be ) - `data.relatedProductsCategory` (string,null, required) GUID category, in which the products are related to this category (can be ) - `data.customerVisibility` (string,null, required) defines, which users of the e-shop have the category shown - = all, = registered users, = non-registered users - `data.productOrdering` (string,null, required) Defines, how products are sorted in a category. See also [Sorting of products in category](#section/code-lists/sorting-of-products-in-category) code list. - `data.catalogueMapping` (array, required) pairing to search engines such as Zboží, Heuréka, Google, etc. (can be ) - `data.catalogueMapping.provider` (string, required) provider type - `data.catalogueMapping.category` (string, required) provider category - `errors` (array,null, required) - `errors.errorCode` (string, required) Short text error identification - `errors.message` (string, required) Descriptive error message - `errors.instance` (string, required) Identification of the entity referenced