on ‎2018 Mar 28 8:24 AM
This might help someone in the future, as i just spent an hour trying to figure it out. I kept getting this error
Error processing request (invalid or malformed content?)
Error getting entity for current request body [BadRequestException]
Found 2 results for the given example [ProductModel (
<unsaved>)]. Specify the example model in more detail. Searched with these attributes: {code=GB12} [AmbiguousIdentifierException]
This would put the product with code GB12 into the category with code PAZ (in the staged catalogversion of a product catalog)
PUT http://127.0.0.1:9001/ws410/rest/catalogs/ProductCatalog/catalogversions/Staged/categories/PAZ
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<category code="PAZ" pk="8796360310926" uri="http://127.0.0.1:9001/ws410/rest/catalogs/ProductCatalog/catalogversions/Staged/categories/PAZ">
<products>
<product code="GB12" pk="8798411030529" uri="http://127.0.0.1:9001/ws410/rest/catalogs/ProductCatalog/catalogversions/Staged/products/GB12">
<catalogVersion version="Staged">
<catalog id="ProductCatalog"/>
</catalogVersion>
</product>
</products>
</category>
Request clarification before answering.
The only limitation to this approach is it wipes all the other categories from the product! Back to the drawing board :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.