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.
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
Reuse this key for retries of the same write. Scoped to this API key; retained until key deletion. Different requests with the same key return 409.
1 - 128^[!-~]+$Path Parameters
Body
255x > 0255100000255Localized category names keyed by locale code
Show child attributes
Show child attributes
Localized category descriptions keyed by locale code
Show child attributes
Show child attributes
Localized meta titles keyed by locale code
Show child attributes
Show child attributes
Localized meta descriptions keyed by locale code
Show child attributes
Show child attributes
Localized meta keywords keyed by locale code
Show child attributes
Show child attributes
Optional industry override for scoring products under this category. Empty falls back to the project's primary_industry.
50Ordered FAQ items: [{"id", "question", "answer"}]. Answers are limited HTML.
FAQ translations keyed by locale, then FAQ id
Show child attributes
Show child attributes
Append this category's FAQs to the FAQs of every product directly in it
Response
OK

