Update a product
Update a product
Authorizations:Token, JWT
Query Parameters
id required | integer>= 1 |
Request Body Schema:
The updated Product resource sku | string[1 .. 32] charactersExample: "0001" | ||||||||||
name | string[1 .. 255] charactersExample: "Product name" | ||||||||||
description | stringExample: "Full description" | ||||||||||
brief_description | stringExample: "Description" | ||||||||||
meta_tags | string | ||||||||||
meta_description | string | ||||||||||
meta_title | string | ||||||||||
manualPrice | numberExample: 9.99 | ||||||||||
enabled | booleanDefault: true Example: true | ||||||||||
weight | numberExample: 1.5 | ||||||||||
separate_box | boolean | ||||||||||
width | numberExample: 1.5 | ||||||||||
length | numberExample: 1.5 | ||||||||||
height | numberExample: 1.5 | ||||||||||
shippable | booleanDefault: true Example: true | ||||||||||
taxable | booleanDefault: true Example: true | ||||||||||
inventory_traceable | booleanDefault: true Example: true | ||||||||||
clean_url | string | ||||||||||
memberships | Array of integers | ||||||||||
tax_class | integer | ||||||||||
product_class | integer | ||||||||||
images | Array of objects or null | ||||||||||
Array
| |||||||||||
facebook_marketing_enabled | booleanDefault: true Example: true | ||||||||||
fitment_type | stringEnum: "regular" "universal" "specific" | ||||||||||
fitments | Array of objects or null | ||||||||||
Array
| |||||||||||
costPrice | number | ||||||||||
minPurchaseQuantity | integer or null | ||||||||||
applySaleToWholesale | boolean or null | ||||||||||
wholesalePrices | Array of objects or null | ||||||||||
Array
| |||||||||||
upc | string or null | ||||||||||
mnf | string or null | ||||||||||
stickers | Array of objects | ||||||||||
Array
| |||||||||||
market_price | number | ||||||||||
tags | Array of objects | ||||||||||
Array
| |||||||||||
google_feed_enabled | booleanDefault: true Example: true | ||||||||||
participate_sale | boolean | ||||||||||
discount_type | stringDefault: "sale_percent" Enum: "sale_price" "sale_percent" Example: "sale_percent" | ||||||||||
sale_price_value | number | ||||||||||
og_meta_tags | string | ||||||||||
useCustomOG | boolean |
Responses
200Product resource updated
Response schema:
Product resource updated sku | string[1 .. 32] charactersExample: "0001" | ||||||||||||
name | string[1 .. 255] charactersExample: "Product name" | ||||||||||||
description | stringExample: "Full description" | ||||||||||||
brief_description | stringExample: "Description" | ||||||||||||
meta_tags | string | ||||||||||||
meta_description | string | ||||||||||||
meta_title | string | ||||||||||||
price | number or null | ||||||||||||
manualPrice | numberExample: 9.99 | ||||||||||||
enabled | booleanDefault: true Example: true | ||||||||||||
weight | numberExample: 1.5 | ||||||||||||
separate_box | boolean | ||||||||||||
width | numberExample: 1.5 | ||||||||||||
length | numberExample: 1.5 | ||||||||||||
height | numberExample: 1.5 | ||||||||||||
shippable | booleanDefault: true Example: true | ||||||||||||
taxable | booleanDefault: true Example: true | ||||||||||||
create_date | object or nullExample: "2024-07-20T00:00:00+00:00" | ||||||||||||
| |||||||||||||
update_date | object or nullExample: "2024-07-20T00:00:00+00:00" | ||||||||||||
| |||||||||||||
arrival_date | object or nullExample: "2024-07-20T00:00:00+00:00" | ||||||||||||
| |||||||||||||
inventory_traceable | booleanDefault: true Example: true | ||||||||||||
amount | integer or null | ||||||||||||
availableAmount | integer or null | ||||||||||||
clean_url | string | ||||||||||||
memberships | Array of integers | ||||||||||||
tax_class | integer | ||||||||||||
product_class | integer | ||||||||||||
images | Array of objects or null | ||||||||||||
Array
| |||||||||||||
facebook_marketing_enabled | booleanDefault: true Example: true | ||||||||||||
fitment_type | stringEnum: "regular" "universal" "specific" | ||||||||||||
fitments | Array of objects or null | ||||||||||||
Array
| |||||||||||||
costPrice | number | ||||||||||||
minPurchaseQuantity | integer or null | ||||||||||||
applySaleToWholesale | boolean or null | ||||||||||||
wholesalePrices | Array of objects or null | ||||||||||||
Array
| |||||||||||||
upc | string or null | ||||||||||||
mnf | string or null | ||||||||||||
stickers | Array of objects | ||||||||||||
Array
| |||||||||||||
market_price | number | ||||||||||||
tags | Array of objects | ||||||||||||
Array
| |||||||||||||
google_feed_enabled | booleanDefault: true Example: true | ||||||||||||
participate_sale | boolean | ||||||||||||
discount_type | stringDefault: "sale_percent" Enum: "sale_price" "sale_percent" Example: "sale_percent" | ||||||||||||
sale_price_value | number | ||||||||||||
variation_bases | Array of objects | ||||||||||||
Array
| |||||||||||||
og_meta_tags | string | ||||||||||||
useCustomOG | boolean | ||||||||||||
id | integer or null>= 1 |
400Invalid input
401Unauthorized
Response schema:
Unauthorized type | stringExample: "https://tools.ietf.org/html/rfc2616#section-10" |
title | stringExample: "An error occurred" |
detail | string or nullExample: "Cannot find entity" |
instance | string or null |
404Resource not found
Response schema:
Resource not found type | stringExample: "https://tools.ietf.org/html/rfc2616#section-10" |
title | stringExample: "An error occurred" |
detail | string or nullExample: "Cannot find entity" |
instance | string or null |
422Unprocessable entity
500Internal error
Response schema:
Internal error type | stringExample: "https://tools.ietf.org/html/rfc2616#section-10" |
title | stringExample: "An error occurred" |
detail | string or nullExample: "Cannot find entity" |
instance | string or null |