Description#
This function updates an existing copy product rule.
Request Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
CopyProductRules_IDCopyProductRules_Name |
Number String |
Required. ID or name of the copy product rule to update. One of the two must be sent. | |
Name |
String | No | New name for the rule. Max 100 characters. Must be unique. |
CoreProductData |
Boolean | No | Whether the rule copies core product data. |
Attributes |
Boolean | No | Whether the rule copies attributes. |
CategoryAssignments |
Boolean | No | Whether the rule copies category assignments. |
InventorySettings |
Boolean | No | Whether the rule copies inventory settings. |
InventoryLevel |
Boolean | No | Whether the rule copies inventory levels. |
Images |
Boolean | No | Whether the rule copies images. |
RelatedProducts |
Boolean | No | Whether the rule copies related products. |
Upsale |
Boolean | No | Whether the rule copies upsale settings. |
AvailabilityGroupAssignments |
Boolean | No | Whether the rule copies availability group assignments. |
PriceGroupAssignments |
Boolean | No | Whether the rule copies price group assignments. |
DigitalDownloadSettings |
Boolean | No | Whether the rule copies digital download settings. |
GiftCertificateSales |
Boolean | No | Whether the rule copies gift certificate sales settings. |
SubscriptionSettings |
Boolean | No | Whether the rule copies subscription settings. |
PaymentRules |
Boolean | No | Whether the rule copies payment rules. |
ShippingRules |
Boolean | No | Whether the rule copies shipping rules. |
ProductKits |
Boolean | No | Whether the rule copies product kits. |
ProductVariants |
Boolean | No | Whether the rule copies product variants. |
Example Request#
{
"Store_Code": "{{Store_Code}}",
"Miva_Request_Timestamp": "{{$timestamp}}",
"Function": "CopyProductRules_Update",
"CopyProductRules_ID": 4,
"Name": "Updated Rule Name",
"CoreProductData": false,
"Attributes": true,
"CategoryAssignments": true,
"InventorySettings": false,
"InventoryLevel": false,
"Images": false,
"RelatedProducts": false,
"Upsale": false,
"AvailabilityGroupAssignments": false,
"PriceGroupAssignments": false,
"DigitalDownloadSettings": false,
"GiftCertificateSales": false,
"SubscriptionSettings": false,
"PaymentRules": false,
"ShippingRules": false,
"ProductKits": false,
"ProductVariants": false
}
Example Response#
{
"success": 1
}