Skip to product menu
Skip to main content

Edit Category Image

HTTP Request

PUT https://commerce.zoho.com/store/api/v1/categories//images/ 

 

OAuthScope

ZohoCommerce.items.UPDATE

 

Query Parameters

ParameterDescription
namestring: Name of the category's image (shouldn't contain any html characters like <>).
alter_textstring: Alternate text for the category's image (shouldn't contain any html characters like <>).

 

Request Example

Copiedcurl -X PUT
'https://commerce.zoho.com/store/api/v1/categories/1706707000000538083/images/1706707000000535022'
-H 'Authorization: Zoho-oauthtoken ***'
-H 'Content-Type: application/json'
-H 'X-com-zoho-store-organizationid: 682219181'
-d '{"name" : "Category_name","alter_text" : "Category alternate text"}'

Success Response

Copied{
"code": 0,
"message": "Document details have been saved."
}

Failure Response

Copied{
"code": 2,
"message": "Invalid value passed for alter_text"
}
{
"code": 2,
"message": "Invalid value passed for name"
}
Use this API to update the name and alt text of the category image.