Sign in

Update product

documented

Update an existing product by SKU.

PUT /rest/{store_code}/V1/products/{sku}Catalogno implementation yet0 runs
No 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://{{$magento_base_url}}/rest/{{$store_code}}/V1/products/{{$sku}}" \
  -X PUT \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -d '{"product": {"name": "{{$name}}", "price": {{$price}}, "status": 1, "visibility": 4, "custom_attributes": [{"attribute_code": "description", "value": "{{$description}}"}]}}'