Skip to content

RelatedProduct_Update_Assigned#


Description#

This function updates the assignment for a related product.

Request Parameters#

Parameter
Type Description
function String Related Product Update Assigned
product_id
Edit_Product
Product_Code
Product_SKU
Number
String
String
String
ID Number of product
Product code string
Product code string
Product SKU string
relatedproduct_id
Edit_relatedproduct
relatedproduct_Code
relatedproduct_SKU
Number
String
String
String
ID Number of Related Product
Related Product code string
Related Product code string
Related Product SKU string
assigned Boolean Boolean value indicating if the related product should be assigned to the product

Response Parameters#

Parameter
Type Description
success Boolean Boolean value indicating if the API request was successful

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "ProductShippingRules_Update",
    "Product_ID": 1,
    "ShipsInOwnPackaging": true,
    "Width": 10,
    "Length": 11,
    "Height": 12,
    "LimitShippingMethods": true,
    "ShippingMethods": [
        {
            "module_code": "xxx",
            "method_code": "yyy"
        }
        ...
    ]
}

Example Response#

{
    "success": 1
}