Create product
documentedCreate a new product in the catalog.
POST /rest/{store_code}/V1/productsCatalogno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://{{$base_url}}/rest/{{$store_code}}/V1/products" \
-X POST \
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"product": {"sku": "{{$sku}}", "name": "{{$name}}", "attribute_set_id": {{$attribute_set_id}}, "price": {{$price}}, "status": {{$status}}, "visibility": {{$visibility}}, "type_id": "{{$type_id}}", "weight": {{$weight}}, "extension_attributes": {"stock_item": {"qty": {{$qty}}, "is_in_stock": {{$is_in_stock}}, "use_config_min_qty": false, "use_config_max_sale_qty": false}}, "custom_attributes": [ {"attribute_code": "description", "value": "{{$description}}"}, {"attribute_code": "short_description", "value": "{{$short_description}}"} ]}}'