This function allows you to assign or unassign a custom field from a copy product rule.
Description#
This function allows you to assign or unassign a custom field from a copy product rule.
Request Body Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
CopyProductRules_ID |
Integer | ID of the copy product rule. CopyProductRules_Name can be sent instead. |
|
Module_Code |
String | Yes | Required. Code of the module that owns the custom field. |
Field_Code |
String | Yes | Required. Code of the custom field to assign or unassign. |
Assigned |
Boolean | Yes | Required. true assigns the field to the rule, false unassigns it. |
Example Request#
{
"Store_Code": "{{Store_Code}}",
"Miva_Request_Timestamp": "{{$timestamp}}",
"Function": "CopyProductRulesCustomField_Update_Assigned",
"CopyProductRules_ID": 4,
"Module_Code": "customfields",
"Field_Code": "tabs_reviews",
"Assigned": true
}
Example Response#
{
"success": 1
}