magento2: Successful attribute option POST returns 'true', not the option hash or value

Preconditions

  1. Magento 2.1.0.

Steps to reproduce

  1. POST an new option value using /V1/products/attributes/{attributeCode}/options. Request body looks like {"option": {"label": "FOOBAR"} }
  2. Examine response content.

Expected result

  1. Returned body should contain full record of option inserted including the option “value.”

Actual result

  1. Response body contains only ‘true’. To learn the value of the newly inserted option you most GET the entire list again.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (8 by maintainers)

Most upvoted comments

@milindsingh Option 2 (backport 2.3-develop approach)