docs: Include shipping_profile_id in product creation request (#11436)

- Fixed missing `shipping_profile_id` field in product creation request, which caused "Invalid request: Field 'shipping_profile_id' is required" errors.
- Updated the request payload to include `shipping_profile_id`.
- Edited documentation to reflect this change.
This commit is contained in:
Bradley Mwangangi
2025-02-13 10:49:39 +03:00
committed by GitHub
parent 73d921f511
commit 90815793df

View File

@@ -230,13 +230,14 @@ curl -X POST 'http://localhost:9000/admin/products' \
"values": ["Default option value"]
}
],
"shipping_profile_id": "{shipping_profile_id}",
"additional_data": {
"brand_id": "{brand_id}"
}
}'
```
Make sure to replace `{token}` with the token you received from the previous request, 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.
The request creates a product and returns it.