Update categories
curl --request PATCH \
--url https://wisepim.com/api/public/v1/categories/{category_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"parent": 1,
"description": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_keywords": "<string>",
"is_active": true,
"sort_order": 123,
"name_localized": {},
"description_localized": {},
"meta_title_localized": {},
"meta_description_localized": {},
"meta_keywords_localized": {},
"industry_slug": "<string>",
"faqs": [
{}
],
"faqs_localized": {},
"append_faqs_to_products": true
}
'import requests
url = "https://wisepim.com/api/public/v1/categories/{category_id}"
payload = {
"name": "<string>",
"parent": 1,
"description": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_keywords": "<string>",
"is_active": True,
"sort_order": 123,
"name_localized": {},
"description_localized": {},
"meta_title_localized": {},
"meta_description_localized": {},
"meta_keywords_localized": {},
"industry_slug": "<string>",
"faqs": [{}],
"faqs_localized": {},
"append_faqs_to_products": True
}
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({
name: '<string>',
parent: 1,
description: '<string>',
meta_title: '<string>',
meta_description: '<string>',
meta_keywords: '<string>',
is_active: true,
sort_order: 123,
name_localized: {},
description_localized: {},
meta_title_localized: {},
meta_description_localized: {},
meta_keywords_localized: {},
industry_slug: '<string>',
faqs: [{}],
faqs_localized: {},
append_faqs_to_products: true
})
};
fetch('https://wisepim.com/api/public/v1/categories/{category_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"name": "<string>",
"slug": "<string>",
"level": 123,
"is_active": true,
"sort_order": 123,
"hierarchy_path": "<string>",
"parent_id": 123,
"description": "<string>",
"external_code": "<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>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}Update categories
PATCH /categories/. Required scopes: categories:write.
PATCH
/
api
/
public
/
v1
/
categories
/
{category_id}
Update categories
curl --request PATCH \
--url https://wisepim.com/api/public/v1/categories/{category_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"parent": 1,
"description": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_keywords": "<string>",
"is_active": true,
"sort_order": 123,
"name_localized": {},
"description_localized": {},
"meta_title_localized": {},
"meta_description_localized": {},
"meta_keywords_localized": {},
"industry_slug": "<string>",
"faqs": [
{}
],
"faqs_localized": {},
"append_faqs_to_products": true
}
'import requests
url = "https://wisepim.com/api/public/v1/categories/{category_id}"
payload = {
"name": "<string>",
"parent": 1,
"description": "<string>",
"meta_title": "<string>",
"meta_description": "<string>",
"meta_keywords": "<string>",
"is_active": True,
"sort_order": 123,
"name_localized": {},
"description_localized": {},
"meta_title_localized": {},
"meta_description_localized": {},
"meta_keywords_localized": {},
"industry_slug": "<string>",
"faqs": [{}],
"faqs_localized": {},
"append_faqs_to_products": True
}
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({
name: '<string>',
parent: 1,
description: '<string>',
meta_title: '<string>',
meta_description: '<string>',
meta_keywords: '<string>',
is_active: true,
sort_order: 123,
name_localized: {},
description_localized: {},
meta_title_localized: {},
meta_description_localized: {},
meta_keywords_localized: {},
industry_slug: '<string>',
faqs: [{}],
faqs_localized: {},
append_faqs_to_products: true
})
};
fetch('https://wisepim.com/api/public/v1/categories/{category_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": 123,
"name": "<string>",
"slug": "<string>",
"level": 123,
"is_active": true,
"sort_order": 123,
"hierarchy_path": "<string>",
"parent_id": 123,
"description": "<string>",
"external_code": "<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>"
}{
"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

