Skip to Content
author's profile photo Former Member
Former Member

Populating product feature values via Web Service (platformwebservices)

Dear Experts,

I am looking for an OOTB way to update product features via webservice.

So far i managed to assign categories, variants and other entities on the product. However I am having troubles with the Feature. I am trying to stick to standard OOTB without having to customize.

So far I have tried the following getting no luck:

[1]: https://localhost:9002/ws410/rest/catalogs/testProductCatalog/catalogversions/Staged/products/test_ervin_product2

   "@code": "test_ervin_product2",
   "features": {
     "productFeature": [
         "@qualifier": "testClassificationCatalog/1.0/fit.1",
         "@value": "test value",
         "product": {
           "@code": "test_ervin_product2",
           "catalogVersion": {
             "@version": "Staged",
             "catalog": {
               "@id": "testProductCatalog"

I would assume it would be somethign like this. However I am getting the following error:

[de.hybris.platform.catalog.impl.ProductFeatureValidateInterceptor@2dc1383a]:missing attribute 'Value' [ModelSavingException]

I understand the value property is a dynamic attribute, however there is a setter which is being set, and inside the AttributeHandler for this field its reading from a property on the model "rawValue" to read the dynamic attribute. I would assume that the OOTB implementation should be able to handle this request. Its very strange for me.

I have also tried to update the ProductFeature Directly wiht reference to the Product. For this i needed to add ProductDTO to the request as its not there OOTB. Something like this. All request sent via PUT:


 <classificationvalue code="fit" qualifier="" value="test value">
     <product code="test_ervin_product2" pk="8796355231745" uri="https://localhost:9002/ws410/rest/catalogs/testProductCatalog/catalogversions/Staged/products/test_ervin_product2"/>

And giving me a result as same as before:

[de.hybris.platform.catalog.impl.ProductFeatureValidateInterceptor@2dc1383a]:missing attribute 'Value' [ModelSavingException]

Any ideas? Is there anyway to avoid customize? For me it doesnt make sense that I cannot do these operations OOTB. If i can assign prices, categories, etc.... why not features?

Kind Regards, Ervin

Add a comment
10|10000 characters needed characters exceeded

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.