Product

PUT https://api.ecartapi.com/api/v2/products/{{id}}

This request allows to update the information on a Bigcommerce product.

If you wish your product to have multiple categories asociated to it, send a string of the multiple categories Ids you wish your product to have separated by comas.

Limits on information sent on fields.

* name. Must be less than 250 charaters.

* productType. Allowed Values [ physical, digital ].

More information about the ecommerce's resource.

Request Body

{"product"=>{"name"=>"BigCommerce Coffee Mug updated _ {{random}}", "description"=>"Testing update product", "price"=>"10.00", "categoryId"=>"23, 21", "dimensions"=>{"weight"=>"4"}, "productType"=>"physical"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Authorizationstring

RESPONSES

status: OK

{"success":true,"product":{"id":"113","sku":"Test_lpiti","name":"BigCommerce Coffee Mug _ lpiti","upc":null,"description":"Testing product","currency":null,"productType":"physical","quantity":null,"price":"19","dimensions":{"width":null,"height":null,"length":null,"weight":"4"},"units":{"width":"cm","height":"cm","length":"cm","weight":"kg"},"category":{"id":"23","name":null,"all":[{"id":"23"},{"id":"21"}]},"tags":[],"status":{"id":null,"visibility":"true","active":null,"status":"available","ecartapi":"active","ecartapiId":"1"},"variants":[],"options":[],"associatedItems":[],"images":[],"imageUrl":null,"condition":"New","link":null,"dates":{"createdAt":"2021-12-09T00:19:53+00:00","updatedAt":"2021-12-09T20:25:31+00:00"},"vendor":null,"sellOutStock":null}}