@@ -2171,7 +2171,7 @@ $result = $deals->addAProductToTheDealEventuallyCreatingANewItemCalledADealProdu
21712171```
21722172
21732173
2174- ### <a name =" update_product_attachment_details_of_the_deal_product_a_product_already_attached_to_a_deal " ></a >![ Method: ] ( https://apidocs.io/img/method.png " .DealsController.updateProductAttachmentDetailsOfTheDealProductAProductAlreadyAttachedToADeal ") updateProductAttachmentDetailsOfTheDealProductAProductAlreadyAttachedToADeal
2174+ ### <a name =" update_product_attachment_details_of_the_deal_product_a_product_already_attached_to_a_deal " ></a >![ Method: ] ( https://apidocs.io/img/method.png " .DealsController.updateProductAttachmentDetailsOfTheDealProductAProductAlreadyAttachedToADeal ") updateProductAttachmentDetailsOfTheDealProductAProductAlreadyAttachedToADeal < br > _ alias _ ` updateTheProductAttachedToADeal `
21752175
21762176> Updates product attachment details.
21772177
@@ -2185,9 +2185,10 @@ function updateProductAttachmentDetailsOfTheDealProductAProductAlreadyAttachedTo
21852185| Parameter | Tags | Description |
21862186| -----------| ------| -------------|
21872187| id | ``` Required ``` | ID of the deal |
2188- | productAttachmentId | ``` Required ``` | ID of the deal-product (the ID of the product attached to the deal) |
2189- | itemPrice | ``` Optional ``` | Price at which this product will be added to the deal |
2190- | quantity | ``` Optional ``` | Quantity – e.g. how many items of this product will be added to the deal |
2188+ | productAttachmentId | ``` Required ``` | The ID of the deal-product (the ID of the product attached to the deal) |
2189+ | productId | ``` Required ``` | The ID of the product to use |
2190+ | itemPrice | ``` Required ``` | Price at which this product will be added to the deal |
2191+ | quantity | ``` Required ``` | Quantity – e.g. how many items of this product will be added to the deal |
21912192| discountPercentage | ``` Optional ``` | Discount %. If omitted, will be set to 0 |
21922193| duration | ``` Optional ``` | Duration of the product (when product durations are not enabled for the company or if omitted, defaults to 1) |
21932194| productVariationId | ``` Optional ``` | ID of the product variation to use. When omitted, no variation will be used. |
@@ -2205,6 +2206,9 @@ $collect['id'] = $id;
22052206$productAttachmentId = 27;
22062207$collect['productAttachmentId'] = $productAttachmentId;
22072208
2209+ $productId = 2;
2210+ $collect['productId'] = $productId;
2211+
22082212$itemPrice = 27.9633801840075;
22092213$collect['itemPrice'] = $itemPrice;
22102214
0 commit comments