Skip to content

Commit

Permalink
Rename file for linting purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
keharper committed Apr 29, 2024
1 parent 3a40c86 commit b26664b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/data/navigation/sections/rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

<CodeBlock slots="heading, code" repeat="2" languages="JSON, JSON" />

#### Response
**Response:**

```json
{
Expand Down Expand Up @@ -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`.
Expand Down Expand Up @@ -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.

Expand Down

0 comments on commit b26664b

Please sign in to comment.