docs: add missing shipping_profile_id in create product snippets (#11443)
* initial * add link
This commit is contained in:
+1
-1
@@ -237,7 +237,7 @@ curl -X POST 'http://localhost:9000/admin/products' \
|
||||
}'
|
||||
```
|
||||
|
||||
Make sure to replace `{token}` with the token you received from the previous request, `shipping_profile_id` with the ID of a shipping profile in your application, and `{brand_id}` with the ID of a brand in your application.
|
||||
Make sure to replace `{token}` with the token you received from the previous request, `shipping_profile_id` with the ID of a shipping profile in your application, and `{brand_id}` with the ID of a brand in your application. You can retrieve the ID of a shipping profile either from the Medusa Admin, or the [List Shipping Profiles API route](!api!/admin#shipping-profiles_getshippingprofiles).
|
||||
|
||||
The request creates a product and returns it.
|
||||
|
||||
|
||||
@@ -117,6 +117,7 @@ curl -X POST 'http://localhost:9000/admin/products' \
|
||||
"values": ["Default option value"]
|
||||
}
|
||||
],
|
||||
"shipping_profile_id": "{shipping_profile_id}",
|
||||
"additional_data": {
|
||||
"brand": "Acme"
|
||||
}
|
||||
@@ -125,7 +126,7 @@ curl -X POST 'http://localhost:9000/admin/products' \
|
||||
|
||||
<Note title="Tip">
|
||||
|
||||
Make sure to replace the `{token}` in the authorization header with an admin user's authentication token.
|
||||
Make sure to replace the `{token}` in the authorization header with an admin user's authentication token, and `{shipping_profile_id}` with an existing shipping profile's ID.
|
||||
|
||||
</Note>
|
||||
|
||||
|
||||
@@ -124,6 +124,7 @@ const productsData = new Array(productsNum).fill(0).map((_, index) => {
|
||||
Size: sizeOptions[Math.floor(Math.random() * 3)],
|
||||
},
|
||||
})),
|
||||
shipping_profile_id: "sp_123",
|
||||
sales_channels: [
|
||||
{
|
||||
id: defaultSalesChannel[0].id,
|
||||
|
||||
Reference in New Issue
Block a user