cancel
Showing results for 
Search instead for 
Did you mean: 

search criteria field is require

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

search criteria field is require

Hello to all,

I have working to import the product via REST API call, when i trying to import a product with simple data in post method, its show search criteria is required field. please help me for product import issue. details are below

{
"product": {
"sku": "B201-SKU",
"name": "B202",
"price": 30.00,
"status": 1,
"type_id": "simple",
"attribute_set_id":14,
"weight": 1


}
}searchcriteria field.png

1 REPLY 1

Re: search criteria field is require

Hi @suresh_k

 

Use below information to create the products using Rest API , i have tested it in my postman app.

 

URLhttp://yourdomain.com/index.php/rest/V1/products

 

Method : POST

 

Parameters

 

{
  "product": {
    "sku": "B201-SKU",
    "name": "B202",
    "price": 30.00,
    "status": 1,
    "type_id": "simple",
    "attribute_set_id":4,
    "weight": 1
  }
}

 

Try with exact parameters and check it will works !

 

Hope it helps !

if issue solved,Click Kudos & Accept as Solution