CategoryProduct_Update_Assigned#
Description#
This function allows you to assign or unassign a product from a category.
Request Body Parameters#
| Parameter | Type | Description |
|---|---|---|
product_idEdit_ProductProduct_CodeProduct_SKU |
Number String String String |
ID Number of product Product code string Product code string Product SKU string |
category_idcategory_codeedit_category |
Number String String |
The category id being updated The category code being updated The category name being updated |
assigned |
Boolean | true/false whether customer is assigned to this availability group |
Response Parameters#
| Parameter | Type | Description |
|---|---|---|
success |
Number | 1 indicating a successful request. 0 indicating an unsuccessful request. |
Example Request#
{
"Store_Code": "{{Store_Code}}",
"Miva_Request_Timestamp": "{{$timestamp}}",
"Function": "CategoryProduct_Update_Assigned",
"Category_Code": "sample",
"Product_Code": "test",
"Assigned": true
}
Example Response#
{
"success": 1
}
Error Responses#
| Error Code | Error Message | Error Description |
|---|---|---|
| MER-JSN-CAT-00033 | Unable to load category: One of Category_ID, Edit_Category or Category_Code must be specified | Missing required category identifier |
| MER-JSN-PRD-00073 | Unable to load product: One of Product_ID, Edit_Product, Product_Code or Product_SKU must be specified | Missing Required Product Identifier |