Created by potrace 1.16, written by Peter Selinger 2001-2019

Miva Developer Docs

This function allows you to assign or unassign a module from a copy product rule. Assigning a module will allow the rule to copy the product data made available from the module such as custom fields.


Description#

This function allows you to assign or unassign a module from a copy product rule. Assigning a module will allow the rule to copy the product data made available from the module such as custom fields.

Request Parameters#

Parameter Type Required Description
CopyProductRules_ID
CopyProductRules_Name
Number
String
Required. ID or name of the copy product rule. One of the two must be sent.
Module_Code String Yes Required. Code of the module to assign or unassign. The module must be installed, active and implement the copy_prod feature.
Assigned Boolean Yes Required. true to assign the module to the rule, false to unassign it.

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "CopyProductRulesModule_Update_Assigned",
    "CopyProductRules_ID": 4,
    "Module_Code": "customfields",
    "Assigned": true
}

Example Response#

{
    "success": 1
}