Skip to content

Successful attribute option POST returns 'true', not the option hash or value #6300

Closed
@dnadle

Description

@dnadle

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Event: distributed-cdDistributed Contribution DayFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releasebug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions