Perhaps I am missing something, but are we able to assign multiple categories to a product via the API?
I figured that in the API request one could list an array of category codes to assign to, but I get hit with an error
REQUEST:
RESPONSE:
Is there a way to assign multiples or would a separate API request need to be made for every category?
ALSO
Am I understanding correctly that this is the only function that can assign a product to a category? I couldn't add categories to a product during a Product_Insert or a Product_Update correct?
I figured that in the API request one could list an array of category codes to assign to, but I get hit with an error
REQUEST:
HTML Code:
Array ( [Store_Code] => STORE_CODE [Function] => CategoryProduct_Update_Assigned [Miva_Request_Timestamp] => 8675309 [Category_Code] => Array ( [0] => cat-01 [1] => cat-02 ) [Product_Code] => PROD [Assigned] => 1 )
HTML Code:
{ "success": 0, "error_code": "MER-JSN-CAT-00032", "error_message": "Category not found" }
ALSO
Am I understanding correctly that this is the only function that can assign a product to a category? I couldn't add categories to a product during a Product_Insert or a Product_Update correct?
Comment