Skip to content

Creating a product via REST API does not assign it to the website. #8173

Closed
@geon

Description

@geon

Preconditions

php 7
Percona
Magento 2.1.3
(mageinferno docker image)

Steps to reproduce

PUT /rest/V1/products/SOME_SKU

Expected result

The product should be visible in the website.

Actual result

It is not.

When investigation, I found that the products created via REST were assigned to the website 0, while products created via the admin GUI are assigned to website 1. (In table catalog_product_website.)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions