Update a product
curl --request PATCH \
--url https://wisepim.com/api/public/v1/products/{product_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product_type": "<string>",
"parent_id": 4611686018427388000,
"parent_sku": "<string>",
"family_id": 4611686018427388000,
"family_code": "<string>",
"variant_axes": [
"<string>"
],
"ean": "<string>",
"upc": "<string>",
"manufacturer_part_number": "<string>",
"brand": "<string>",
"name": "<string>",
"name_long": "<string>",
"description": "<string>",
"short_description": "<string>",
"name_localized": {},
"name_long_localized": {},
"meta_title_localized": {},
"meta_description_localized": {},
"meta_keywords_localized": {},
"supplier": "<string>",
"is_visible": true,
"cost": "<string>",
"weight": "<string>",
"weight_unit": "<string>",
"length": "<string>",
"width": "<string>",
"height": "<string>",
"dimension_unit": "<string>",
"manage_stock": true,
"stock_quantity": -1,
"stock_status": "<string>",
"backorders_allowed": true,
"backorders_notify": true,
"availability_date": "2023-11-07T05:31:56Z",
"low_stock_threshold": 1073741823,
"requires_shipping": true,
"hs_code": "<string>",
"country_of_origin": "<string>",
"is_dangerous_good": true,
"is_fragile": true,
"free_shipping": true,
"shipping_class": "<string>",
"handling_instructions": "<string>",
"faqs": [
{}
],
"faqs_localized": {},
"skip_category_faqs": true,
"category_faq_threshold": 1,
"description_localized": {},
"short_description_localized": {},
"status": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_keywords": "<string>",
"price": "<string>",
"special_price": "<string>",
"special_price_start_date": "2023-11-07T05:31:56Z",
"special_price_end_date": "2023-11-07T05:31:56Z",
"category_ids": [
123
],
"attributes": {}
}
'import requests
url = "https://wisepim.com/api/public/v1/products/{product_id}"
payload = {
"product_type": "<string>",
"parent_id": 4611686018427388000,
"parent_sku": "<string>",
"family_id": 4611686018427388000,
"family_code": "<string>",
"variant_axes": ["<string>"],
"ean": "<string>",
"upc": "<string>",
"manufacturer_part_number": "<string>",
"brand": "<string>",
"name": "<string>",
"name_long": "<string>",
"description": "<string>",
"short_description": "<string>",
"name_localized": {},
"name_long_localized": {},
"meta_title_localized": {},
"meta_description_localized": {},
"meta_keywords_localized": {},
"supplier": "<string>",
"is_visible": True,
"cost": "<string>",
"weight": "<string>",
"weight_unit": "<string>",
"length": "<string>",
"width": "<string>",
"height": "<string>",
"dimension_unit": "<string>",
"manage_stock": True,
"stock_quantity": -1,
"stock_status": "<string>",
"backorders_allowed": True,
"backorders_notify": True,
"availability_date": "2023-11-07T05:31:56Z",
"low_stock_threshold": 1073741823,
"requires_shipping": True,
"hs_code": "<string>",
"country_of_origin": "<string>",
"is_dangerous_good": True,
"is_fragile": True,
"free_shipping": True,
"shipping_class": "<string>",
"handling_instructions": "<string>",
"faqs": [{}],
"faqs_localized": {},
"skip_category_faqs": True,
"category_faq_threshold": 1,
"description_localized": {},
"short_description_localized": {},
"status": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_keywords": "<string>",
"price": "<string>",
"special_price": "<string>",
"special_price_start_date": "2023-11-07T05:31:56Z",
"special_price_end_date": "2023-11-07T05:31:56Z",
"category_ids": [123],
"attributes": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
product_type: '<string>',
parent_id: 4611686018427388000,
parent_sku: '<string>',
family_id: 4611686018427388000,
family_code: '<string>',
variant_axes: ['<string>'],
ean: '<string>',
upc: '<string>',
manufacturer_part_number: '<string>',
brand: '<string>',
name: '<string>',
name_long: '<string>',
description: '<string>',
short_description: '<string>',
name_localized: {},
name_long_localized: {},
meta_title_localized: {},
meta_description_localized: {},
meta_keywords_localized: {},
supplier: '<string>',
is_visible: true,
cost: '<string>',
weight: '<string>',
weight_unit: '<string>',
length: '<string>',
width: '<string>',
height: '<string>',
dimension_unit: '<string>',
manage_stock: true,
stock_quantity: -1,
stock_status: '<string>',
backorders_allowed: true,
backorders_notify: true,
availability_date: '2023-11-07T05:31:56Z',
low_stock_threshold: 1073741823,
requires_shipping: true,
hs_code: '<string>',
country_of_origin: '<string>',
is_dangerous_good: true,
is_fragile: true,
free_shipping: true,
shipping_class: '<string>',
handling_instructions: '<string>',
faqs: [{}],
faqs_localized: {},
skip_category_faqs: true,
category_faq_threshold: 1,
description_localized: {},
short_description_localized: {},
status: '<string>',
meta_title: '<string>',
meta_description: '<string>',
meta_keywords: '<string>',
price: '<string>',
special_price: '<string>',
special_price_start_date: '2023-11-07T05:31:56Z',
special_price_end_date: '2023-11-07T05:31:56Z',
category_ids: [123],
attributes: {}
})
};
fetch('https://wisepim.com/api/public/v1/products/{product_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"sku": "<string>",
"name": "<string>",
"name_long": "<string>",
"name_localized": {},
"description_localized": {},
"short_description_localized": {},
"status": "<string>",
"product_type": "<string>",
"category_ids": [
123
],
"attributes": [
{
"code": "<string>",
"label": "<string>",
"type": "<string>",
"value": "<unknown>",
"unit": "<string>"
}
],
"version": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"ean": "<string>",
"upc": "<string>",
"manufacturer_part_number": "<string>",
"brand": "<string>",
"description": "<string>",
"short_description": "<string>",
"parent_id": 123,
"family": {
"id": 123,
"code": "<string>",
"name": "<string>"
},
"price": "<string>",
"special_price": "<string>",
"special_price_start_date": "2023-11-07T05:31:56Z",
"special_price_end_date": "2023-11-07T05:31:56Z",
"main_image": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_keywords": "<string>",
"name_long_localized": {},
"meta_title_localized": {},
"meta_description_localized": {},
"meta_keywords_localized": {},
"supplier": "",
"is_visible": true,
"cost": "<string>",
"weight": "<string>",
"weight_unit": "kg",
"length": "<string>",
"width": "<string>",
"height": "<string>",
"dimension_unit": "cm",
"manage_stock": true,
"stock_quantity": 0,
"stock_status": "in_stock",
"backorders_allowed": false,
"backorders_notify": false,
"availability_date": "2023-11-07T05:31:56Z",
"low_stock_threshold": 123,
"requires_shipping": true,
"hs_code": "<string>",
"country_of_origin": "<string>",
"is_dangerous_good": false,
"is_fragile": false,
"free_shipping": false,
"shipping_class": "<string>",
"handling_instructions": "<string>",
"faqs": [
{}
],
"faqs_localized": {},
"skip_category_faqs": false,
"category_faq_threshold": 123
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>",
"detail": [
{}
]
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}Update a product
PATCH /products/ on the WISEPIM Public API: partial update of content, prices, SEO fields, categories and attributes. Requires products:write.
PATCH
/
api
/
public
/
v1
/
products
/
{product_id}
Update a product
curl --request PATCH \
--url https://wisepim.com/api/public/v1/products/{product_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"product_type": "<string>",
"parent_id": 4611686018427388000,
"parent_sku": "<string>",
"family_id": 4611686018427388000,
"family_code": "<string>",
"variant_axes": [
"<string>"
],
"ean": "<string>",
"upc": "<string>",
"manufacturer_part_number": "<string>",
"brand": "<string>",
"name": "<string>",
"name_long": "<string>",
"description": "<string>",
"short_description": "<string>",
"name_localized": {},
"name_long_localized": {},
"meta_title_localized": {},
"meta_description_localized": {},
"meta_keywords_localized": {},
"supplier": "<string>",
"is_visible": true,
"cost": "<string>",
"weight": "<string>",
"weight_unit": "<string>",
"length": "<string>",
"width": "<string>",
"height": "<string>",
"dimension_unit": "<string>",
"manage_stock": true,
"stock_quantity": -1,
"stock_status": "<string>",
"backorders_allowed": true,
"backorders_notify": true,
"availability_date": "2023-11-07T05:31:56Z",
"low_stock_threshold": 1073741823,
"requires_shipping": true,
"hs_code": "<string>",
"country_of_origin": "<string>",
"is_dangerous_good": true,
"is_fragile": true,
"free_shipping": true,
"shipping_class": "<string>",
"handling_instructions": "<string>",
"faqs": [
{}
],
"faqs_localized": {},
"skip_category_faqs": true,
"category_faq_threshold": 1,
"description_localized": {},
"short_description_localized": {},
"status": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_keywords": "<string>",
"price": "<string>",
"special_price": "<string>",
"special_price_start_date": "2023-11-07T05:31:56Z",
"special_price_end_date": "2023-11-07T05:31:56Z",
"category_ids": [
123
],
"attributes": {}
}
'import requests
url = "https://wisepim.com/api/public/v1/products/{product_id}"
payload = {
"product_type": "<string>",
"parent_id": 4611686018427388000,
"parent_sku": "<string>",
"family_id": 4611686018427388000,
"family_code": "<string>",
"variant_axes": ["<string>"],
"ean": "<string>",
"upc": "<string>",
"manufacturer_part_number": "<string>",
"brand": "<string>",
"name": "<string>",
"name_long": "<string>",
"description": "<string>",
"short_description": "<string>",
"name_localized": {},
"name_long_localized": {},
"meta_title_localized": {},
"meta_description_localized": {},
"meta_keywords_localized": {},
"supplier": "<string>",
"is_visible": True,
"cost": "<string>",
"weight": "<string>",
"weight_unit": "<string>",
"length": "<string>",
"width": "<string>",
"height": "<string>",
"dimension_unit": "<string>",
"manage_stock": True,
"stock_quantity": -1,
"stock_status": "<string>",
"backorders_allowed": True,
"backorders_notify": True,
"availability_date": "2023-11-07T05:31:56Z",
"low_stock_threshold": 1073741823,
"requires_shipping": True,
"hs_code": "<string>",
"country_of_origin": "<string>",
"is_dangerous_good": True,
"is_fragile": True,
"free_shipping": True,
"shipping_class": "<string>",
"handling_instructions": "<string>",
"faqs": [{}],
"faqs_localized": {},
"skip_category_faqs": True,
"category_faq_threshold": 1,
"description_localized": {},
"short_description_localized": {},
"status": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_keywords": "<string>",
"price": "<string>",
"special_price": "<string>",
"special_price_start_date": "2023-11-07T05:31:56Z",
"special_price_end_date": "2023-11-07T05:31:56Z",
"category_ids": [123],
"attributes": {}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
product_type: '<string>',
parent_id: 4611686018427388000,
parent_sku: '<string>',
family_id: 4611686018427388000,
family_code: '<string>',
variant_axes: ['<string>'],
ean: '<string>',
upc: '<string>',
manufacturer_part_number: '<string>',
brand: '<string>',
name: '<string>',
name_long: '<string>',
description: '<string>',
short_description: '<string>',
name_localized: {},
name_long_localized: {},
meta_title_localized: {},
meta_description_localized: {},
meta_keywords_localized: {},
supplier: '<string>',
is_visible: true,
cost: '<string>',
weight: '<string>',
weight_unit: '<string>',
length: '<string>',
width: '<string>',
height: '<string>',
dimension_unit: '<string>',
manage_stock: true,
stock_quantity: -1,
stock_status: '<string>',
backorders_allowed: true,
backorders_notify: true,
availability_date: '2023-11-07T05:31:56Z',
low_stock_threshold: 1073741823,
requires_shipping: true,
hs_code: '<string>',
country_of_origin: '<string>',
is_dangerous_good: true,
is_fragile: true,
free_shipping: true,
shipping_class: '<string>',
handling_instructions: '<string>',
faqs: [{}],
faqs_localized: {},
skip_category_faqs: true,
category_faq_threshold: 1,
description_localized: {},
short_description_localized: {},
status: '<string>',
meta_title: '<string>',
meta_description: '<string>',
meta_keywords: '<string>',
price: '<string>',
special_price: '<string>',
special_price_start_date: '2023-11-07T05:31:56Z',
special_price_end_date: '2023-11-07T05:31:56Z',
category_ids: [123],
attributes: {}
})
};
fetch('https://wisepim.com/api/public/v1/products/{product_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"sku": "<string>",
"name": "<string>",
"name_long": "<string>",
"name_localized": {},
"description_localized": {},
"short_description_localized": {},
"status": "<string>",
"product_type": "<string>",
"category_ids": [
123
],
"attributes": [
{
"code": "<string>",
"label": "<string>",
"type": "<string>",
"value": "<unknown>",
"unit": "<string>"
}
],
"version": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"ean": "<string>",
"upc": "<string>",
"manufacturer_part_number": "<string>",
"brand": "<string>",
"description": "<string>",
"short_description": "<string>",
"parent_id": 123,
"family": {
"id": 123,
"code": "<string>",
"name": "<string>"
},
"price": "<string>",
"special_price": "<string>",
"special_price_start_date": "2023-11-07T05:31:56Z",
"special_price_end_date": "2023-11-07T05:31:56Z",
"main_image": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_keywords": "<string>",
"name_long_localized": {},
"meta_title_localized": {},
"meta_description_localized": {},
"meta_keywords_localized": {},
"supplier": "",
"is_visible": true,
"cost": "<string>",
"weight": "<string>",
"weight_unit": "kg",
"length": "<string>",
"width": "<string>",
"height": "<string>",
"dimension_unit": "cm",
"manage_stock": true,
"stock_quantity": 0,
"stock_status": "in_stock",
"backorders_allowed": false,
"backorders_notify": false,
"availability_date": "2023-11-07T05:31:56Z",
"low_stock_threshold": 123,
"requires_shipping": true,
"hs_code": "<string>",
"country_of_origin": "<string>",
"is_dangerous_good": false,
"is_fragile": false,
"free_shipping": false,
"shipping_class": "<string>",
"handling_instructions": "<string>",
"faqs": [
{}
],
"faqs_localized": {},
"skip_category_faqs": false,
"category_faq_threshold": 123
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>",
"detail": [
{}
]
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}Authorizations
Use a project API key from Settings > API Access. Send it as Authorization: Bearer wpk_.... See authentication and scopes for setup and permissions.
Headers
Body
application/json
Response
OK

