Logo
Ecartapi.com Public API Documentation

Update product

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

Updates the product information, according to new detailed information.

Important information:

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Authorization
string




RESPONSES

status OK

{ "success": true, "product": { "id": "5f7758c5d0b9092f25e2b7a5", "sku": "SQ0557856", "name": "Artisanal Steak updated", "description": "<p>TUpdated description his can be a few words or even a few <i>paragraphs</i>.</p>", "currency": "USD", "productType": "PHYSICAL", "quantity": "20", "price": "12.95", "dimensions": { "width": "5", "height": "5", "length": "7", "weight": "2" }, "units": { "width": "INCH", "height": "INCH", "length": "INCH", "weight": "POUND" }, "category": { "id": null, "name": null, "all": [] }, "tags": [ "artisanal", "steak" ], "status": { "id": null, "visibility": "true", "active": null, "status": null }, "variants": [ { "id": "44e5f2e7-12ac-4fd0-a9f0-a5c12ced5883", "productId": "5f7758c5d0b9092f25e2b7a5", "name": "Artisanal Steak updated", "price": "12.95", "currency": "USD", "sku": "SQ0557856", "fulfillmentService": null, "option1": "value1", "option2": null, "option3": null, "dimensions": { "width": "5", "height": "5", "length": "7", "weight": "2" }, "units": { "width": "INCH", "height": "INCH", "length": "INCH", "weight": "POUND" }, "inventory": { "itemId": null, "quantity": "10" }, "requireShipping": null, "imageId": "5f7b6433276e4125dc0a94ad", "dates": { "createdAt": null, "updatedAt": null }, "ecartapiUrl": null }, { "id": "7a45494d-c7c1-4f02-86bd-28b83450dd5f", "productId": "5f7758c5d0b9092f25e2b7a5", "name": "Artisanal Steak updated", "price": "11.95", "currency": "USD", "sku": "SQ0557886", "fulfillmentService": null, "option1": "value2", "option2": null, "option3": null, "dimensions": { "width": "5", "height": "5", "length": "7", "weight": "2" }, "units": { "width": "INCH", "height&
Curl
curl -X PUT 'https://api.ecartapi.com/api/v2/products/id' -H 'Authorization: access_token' -d '{"product":{"name":"Artisanal Steak updated","description":"\u003cp\u003eTUpdated description his can be a few words or even a few \u003ci\u003eparagraphs\u003c/i\u003e.\u003c/p\u003e","tags":["artisanal","steak"],"status":{"visibility":"true","status":"updated"},"quantity":"10","options":[{"name":"Sabor"}]}}'

ENDPOINTS