cancel
Showing results for 
Search instead for 
Did you mean: 

How to change "Display to Users" check on Products->Attributes->Attribute Values via API on Sap CPQ?

sbslmhmt
Participant
0 Kudos

How to change "Display to Users" check for Products->Attributes->Attribute Values on Sap CPQ?

View Entire Topic
Fancy_Zou
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Please use API /setup/api/v1/admin/products/productAttributes.

Details can be found via https://{Your CPQ Host URL}/webapihelp/index#!/Products/Products_SaveProductAttribute

Best Regards

Fancy

sbslmhmt
Participant
0 Kudos

Hello fancy.zou ,

Thank you very much for your answer. I've already tried this API but there are a lot of parameters to fill. Do you have an example usage?

Best regards.

Fancy_Zou
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi mehmetali_subasi67

If you only want to change one of the parameter, you may first get the current product attribute definitions via the API /setup/api/v1/admin/products/{productId}/attributes/{standardAttributeCode}, then modify the parameter values based on the GET API response which can be used as the request payload for POST /setup/api/v1/admin/products/productAttributes.

Best Regards