Update a Category
HTTP Request
PUT https://commerce.zoho.com/store/api/v1/categories/
OAuthScope
ZohoCommerce.items.UPDATE
Body Parameters
Parameter | Description |
name | string: Name of the category. |
url | string: URL of the category. The value should be unique [URL can contain only letters (upper and lower cases), numbers, hyphen(-) and underscore(_)]. |
description | string: Description about the category. |
visibility | boolean: Visibility of the category in published site. |
show_in_menu | boolean: Specify whether the category should be shown as a menu item in published site or not. |
seo_keyword | string: Keywords related to category that can be used for SEO (Multiple keywords can be specified by separating them with commas). |
seo_title | string: Title of the category to be used in SEO. |
seo_description | string: Description about the category to be used in SEO. |
parent_category_id | long: Parent ID of the category (Empty will be considered as ROOT). |
Request Example
Copiedcurl -X PUT
'https://commerce.zoho.com/store/api/v1/categories/1706707000000535004'
-H 'Authorization: Zoho-oauthtoken ***'
-H 'Content-Type: application/json'
-H 'X-com-zoho-store-organizationid: 682219181'
-d '{"name":"Casuals","url":"casuals","parent_category_id":"-1","description":"Going casual is the current big thing even in the corporate world. With c
Success Response
Copied{
"code": 0,
"message": "Category updated successfully",
"category": {
"category_id": "1706707000000535004",
"name": "Casuals",
"description": "Going casual is the current big thing even in the corporate world. With companies adopting casual dress codes, it only shows how
"url": "casuals",
"parent_category_id": "-1",
"parent_category_name": "",
"visibility": true,
"show_in_menu": false,
"seo_title": "casuals",
"seo_keyword": "casuals,corporate",
"seo_description": "Going casual is the current big thing even in the corporate world. With companies adopting casual dress codes, it only shows
"created_time": "2019-12-17T00:28:50-0700",
"last_modified_time": "2019-12-17T01:05:06-0700",
"ancestors": [],
"children": [],
"documents": []
}
}
Failure Response
Copied{
"code": 1002,
"message": "Resource does not exist."
}