Re-order Product Images

OAuthScope 

ZohoCommerce.items.CREATE

 

HTTP Request

POST https://commerce.zoho.com/store/api/v1/products//images/reorder

 

Body Parameters

ParameterValues
documents*array: Give set of document_id and order to reorder the images.
document_id*string: Give document_id of the image obtained from product data.
order*number: Give the order number of the particular image.

 

Sample Request

Copiedcurl -i -X POST \
-H "Authorization:Zoho-oauthtoken ***" \
-H "X-com-zoho-store-organizationid:682219181" \
-H "Content-Type:application/json" \
-d \
'{"documents":[{"document_id" : "1706707000000562025","order" : 1},{"document_id" : "1706707000000562027","order" : 2}]}' \
'https://commerce.zoho.com/store/api/v1/products/1706707000000561016/images/reorder'

Success Response

Copied{
"code": 0,
"message": "success"
}
This API is used to reorder images of the product.