Skip to content

CopyProductRules_Insert#


Description#

This function inserts a new copy product rule.

Example Request#

{
    "Store_Code": "{{Store_Code}}",
    "Miva_Request_Timestamp": "{{$timestamp}}",
    "Function": "CopyProductRules_Insert",
    "Name": "Copy Core Product Fields",
    "CoreProductData": true,
    "Attributes": false,
    "CategoryAssignments": false,
    "InventorySettings": false,
    "InventoryLevel": false,
    "Images": true,
    "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,
    "data": {
        "id": 4,
        "name": "Copy Core Product Fields",
        "product": true,
        "attributes": false,
        "categories": false,
        "invset": false,
        "invlevel": false,
        "images": true,
        "relprod": false,
        "upsale": false,
        "availgroup": false,
        "pricegroup": false,
        "ddownload": false,
        "giftcert": false,
        "subscrip": false,
        "payment": false,
        "shipping": false,
        "kit": false,
        "variants": false
    }
}