From b26664b1a9d762de410db1424a45071e49beccd4 Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Mon, 29 Apr 2024 14:02:29 -0500 Subject: [PATCH] Rename file for linting purposes --- src/data/navigation/sections/rest.js | 4 ++-- ...on-and-links.md => update-options-and-links.md} | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) rename src/pages/rest/tutorials/bundle-product/{update-store-specific-bundle-product-option-and-links.md => update-options-and-links.md} (97%) diff --git a/src/data/navigation/sections/rest.js b/src/data/navigation/sections/rest.js index 5d854e96f..c6789ec8a 100644 --- a/src/data/navigation/sections/rest.js +++ b/src/data/navigation/sections/rest.js @@ -405,8 +405,8 @@ module.exports = [ path: "/rest/tutorials/bundle-product/create-bundle-product.md", }, { - title: "Step 4. Update store specific bundle product options and option links", - path: "/rest/tutorials/bundle-product/update-store-specific-bundle-product-option-and-links.md", + title: "Step 4. Update bundle product options and option links", + path: "/rest/tutorials/bundle-product/update-options-and-links.md", }, ], }, diff --git a/src/pages/rest/tutorials/bundle-product/update-store-specific-bundle-product-option-and-links.md b/src/pages/rest/tutorials/bundle-product/update-options-and-links.md similarity index 97% rename from src/pages/rest/tutorials/bundle-product/update-store-specific-bundle-product-option-and-links.md rename to src/pages/rest/tutorials/bundle-product/update-options-and-links.md index 9a3d0eca6..7fe08cfab 100644 --- a/src/pages/rest/tutorials/bundle-product/update-store-specific-bundle-product-option-and-links.md +++ b/src/pages/rest/tutorials/bundle-product/update-options-and-links.md @@ -5,25 +5,25 @@ keywords: - REST --- +# Step 4. Update product options or option links (optional) + Updating bundle product options or option links requires the following steps: 1. Get bundle product details 2. Update bundle product options 3. Update bundle product links -# 1. Get bundle product details +## 1. Get bundle product details The following example retrieves store-specific bundle product details for a multi-store configuration by using the `GET {store_code}/V1/products/{sku}` call. -**Endpoint:** +**Request:** ```html GET http://domain.com/rest/default/V1/products/Desktop-Computer ``` - - -#### Response +**Response:** ```json { @@ -202,7 +202,7 @@ GET http://domain.com/rest/default/V1/products/Desktop-Computer Retrieve the `option_id` values from the bundle product options section of the response and use it to update the bundle product option and option links. -# 2. Update bundle product options +## 2. Update bundle product options The following example uses the `PUT /V1/bundle-products/options/{optionId}` call to update the bundle product option. For a store-specific request, add the `store_code`. @@ -262,7 +262,7 @@ PUT http://domain.com/rest/default/V1/bundle-products/options/14 14 ``` -# 3. Update bundle product links +## 3. Update bundle product links The following example uses the `PUT /V1/bundle-products/{sku}/links/{optionId}` call to update a bundle product option link.