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 '
{
"ean": "<string>",
"upc": "<string>",
"manufacturer_part_number": "<string>",
"brand": "<string>",
"name": "<string>",
"name_long": "<string>",
"description": "<string>",
"short_description": "<string>",
"name_localized": {},
"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 = {
"ean": "<string>",
"upc": "<string>",
"manufacturer_part_number": "<string>",
"brand": "<string>",
"name": "<string>",
"name_long": "<string>",
"description": "<string>",
"short_description": "<string>",
"name_localized": {},
"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({
ean: '<string>',
upc: '<string>',
manufacturer_part_number: '<string>',
brand: '<string>',
name: '<string>',
name_long: '<string>',
description: '<string>',
short_description: '<string>',
name_localized: {},
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>"
}{
"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 '
{
"ean": "<string>",
"upc": "<string>",
"manufacturer_part_number": "<string>",
"brand": "<string>",
"name": "<string>",
"name_long": "<string>",
"description": "<string>",
"short_description": "<string>",
"name_localized": {},
"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 = {
"ean": "<string>",
"upc": "<string>",
"manufacturer_part_number": "<string>",
"brand": "<string>",
"name": "<string>",
"name_long": "<string>",
"description": "<string>",
"short_description": "<string>",
"name_localized": {},
"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({
ean: '<string>',
upc: '<string>',
manufacturer_part_number: '<string>',
brand: '<string>',
name: '<string>',
name_long: '<string>',
description: '<string>',
short_description: '<string>',
name_localized: {},
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>"
}{
"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

