curl --request PATCH \
--url https://wisepim.com/api/public/v1/export-templates/{resource_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"code": "<string>",
"description": "<string>",
"target_platform": "<string>",
"include_product_fields": [
"<string>"
],
"column_mappings": {},
"export_locale": "<string>",
"additional_locales": [
"<string>"
],
"attribute_layout": "<string>",
"max_attribute_slots": 123,
"feature_field_mapping": {},
"promoted_attribute_columns": [
{}
],
"category_columns": [
{}
],
"is_default": true,
"is_active": true,
"families": [
123
]
}
'import requests
url = "https://wisepim.com/api/public/v1/export-templates/{resource_id}"
payload = {
"name": "<string>",
"code": "<string>",
"description": "<string>",
"target_platform": "<string>",
"include_product_fields": ["<string>"],
"column_mappings": {},
"export_locale": "<string>",
"additional_locales": ["<string>"],
"attribute_layout": "<string>",
"max_attribute_slots": 123,
"feature_field_mapping": {},
"promoted_attribute_columns": [{}],
"category_columns": [{}],
"is_default": True,
"is_active": True,
"families": [123]
}
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>',
code: '<string>',
description: '<string>',
target_platform: '<string>',
include_product_fields: ['<string>'],
column_mappings: {},
export_locale: '<string>',
additional_locales: ['<string>'],
attribute_layout: '<string>',
max_attribute_slots: 123,
feature_field_mapping: {},
promoted_attribute_columns: [{}],
category_columns: [{}],
is_default: true,
is_active: true,
families: [123]
})
};
fetch('https://wisepim.com/api/public/v1/export-templates/{resource_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"code": "<string>",
"description": "<string>",
"target_platform": "<string>",
"include_product_fields": "<unknown>",
"column_mappings": "<unknown>",
"export_locale": "<string>",
"additional_locales": "<unknown>",
"attribute_layout": "<string>",
"max_attribute_slots": 123,
"feature_field_mapping": "<unknown>",
"promoted_attribute_columns": "<unknown>",
"category_columns": "<unknown>",
"is_default": true,
"is_active": true,
"families": [
123
],
"id": 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>"
}{
"error": "<string>",
"request_id": "<string>",
"code": "<string>"
}Update export-templates
PATCH /export-templates/. Required scopes: export-templates:write.
curl --request PATCH \
--url https://wisepim.com/api/public/v1/export-templates/{resource_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"code": "<string>",
"description": "<string>",
"target_platform": "<string>",
"include_product_fields": [
"<string>"
],
"column_mappings": {},
"export_locale": "<string>",
"additional_locales": [
"<string>"
],
"attribute_layout": "<string>",
"max_attribute_slots": 123,
"feature_field_mapping": {},
"promoted_attribute_columns": [
{}
],
"category_columns": [
{}
],
"is_default": true,
"is_active": true,
"families": [
123
]
}
'import requests
url = "https://wisepim.com/api/public/v1/export-templates/{resource_id}"
payload = {
"name": "<string>",
"code": "<string>",
"description": "<string>",
"target_platform": "<string>",
"include_product_fields": ["<string>"],
"column_mappings": {},
"export_locale": "<string>",
"additional_locales": ["<string>"],
"attribute_layout": "<string>",
"max_attribute_slots": 123,
"feature_field_mapping": {},
"promoted_attribute_columns": [{}],
"category_columns": [{}],
"is_default": True,
"is_active": True,
"families": [123]
}
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>',
code: '<string>',
description: '<string>',
target_platform: '<string>',
include_product_fields: ['<string>'],
column_mappings: {},
export_locale: '<string>',
additional_locales: ['<string>'],
attribute_layout: '<string>',
max_attribute_slots: 123,
feature_field_mapping: {},
promoted_attribute_columns: [{}],
category_columns: [{}],
is_default: true,
is_active: true,
families: [123]
})
};
fetch('https://wisepim.com/api/public/v1/export-templates/{resource_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"code": "<string>",
"description": "<string>",
"target_platform": "<string>",
"include_product_fields": "<unknown>",
"column_mappings": "<unknown>",
"export_locale": "<string>",
"additional_locales": "<unknown>",
"attribute_layout": "<string>",
"max_attribute_slots": 123,
"feature_field_mapping": "<unknown>",
"promoted_attribute_columns": "<unknown>",
"category_columns": "<unknown>",
"is_default": true,
"is_active": true,
"families": [
123
],
"id": 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>"
}{
"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
Config for numbered feature columns. Two source modes: {'source': 'short_description', 'max_slots': 20, 'column_prefix': 'ITEM_FEATURES_', 'split_on': 'newline'} splits a product field by delimiter; {'source': 'attributes', 'attribute_prefix': 'feature_', 'max_slots': 20, 'column_prefix': 'ITEM_FEATURES_'} reads dedicated feature_N attributes from the PAV store.
Response
OK
Config for numbered feature columns. Two source modes: {'source': 'short_description', 'max_slots': 20, 'column_prefix': 'ITEM_FEATURES_', 'split_on': 'newline'} splits a product field by delimiter; {'source': 'attributes', 'attribute_prefix': 'feature_', 'max_slots': 20, 'column_prefix': 'ITEM_FEATURES_'} reads dedicated feature_N attributes from the PAV store.

