curl --request PATCH \
--url https://wisepim.com/api/public/v1/import-templates/{resource_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"mappings": {},
"duplicate_handling": {},
"transformations": {},
"multi_value_config": {},
"value_mappings": {},
"new_option_values": {},
"source_system": "<string>"
}
'import requests
url = "https://wisepim.com/api/public/v1/import-templates/{resource_id}"
payload = {
"name": "<string>",
"description": "<string>",
"mappings": {},
"duplicate_handling": {},
"transformations": {},
"multi_value_config": {},
"value_mappings": {},
"new_option_values": {},
"source_system": "<string>"
}
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>',
description: '<string>',
mappings: {},
duplicate_handling: {},
transformations: {},
multi_value_config: {},
value_mappings: {},
new_option_values: {},
source_system: '<string>'
})
};
fetch('https://wisepim.com/api/public/v1/import-templates/{resource_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"description": "<string>",
"mappings": "<unknown>",
"duplicate_handling": "<unknown>",
"transformations": "<unknown>",
"multi_value_config": "<unknown>",
"value_mappings": "<unknown>",
"new_option_values": "<unknown>",
"source_system": "<string>",
"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 import-templates
PATCH /import-templates/. Required scopes: import-templates:write.
curl --request PATCH \
--url https://wisepim.com/api/public/v1/import-templates/{resource_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"description": "<string>",
"mappings": {},
"duplicate_handling": {},
"transformations": {},
"multi_value_config": {},
"value_mappings": {},
"new_option_values": {},
"source_system": "<string>"
}
'import requests
url = "https://wisepim.com/api/public/v1/import-templates/{resource_id}"
payload = {
"name": "<string>",
"description": "<string>",
"mappings": {},
"duplicate_handling": {},
"transformations": {},
"multi_value_config": {},
"value_mappings": {},
"new_option_values": {},
"source_system": "<string>"
}
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>',
description: '<string>',
mappings: {},
duplicate_handling: {},
transformations: {},
multi_value_config: {},
value_mappings: {},
new_option_values: {},
source_system: '<string>'
})
};
fetch('https://wisepim.com/api/public/v1/import-templates/{resource_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"name": "<string>",
"description": "<string>",
"mappings": "<unknown>",
"duplicate_handling": "<unknown>",
"transformations": "<unknown>",
"multi_value_config": "<unknown>",
"value_mappings": "<unknown>",
"new_option_values": "<unknown>",
"source_system": "<string>",
"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
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
255100000Column mapping: {wisepim_field: csv_column | csv_column[]}
Strategy for duplicate rows: {strategy, identifiers, customFields}
Value transformations: {trimWhitespace, normalizeCase, dateFormat, numberFormat}
Multi-value delimiter config: {delimiter, customDelimiter, trimValues}
Chosen option per source value: {csv_column: {source_value: option_value}} (the import's options.valueMappings)
Source values to add as new select/multiselect options: {csv_column: [source_value]} (the import's options.newOptionValues)
Source system this template was designed for (e.g. 'shopify', 'magento2')
100Response
OK
255Column mapping: {wisepim_field: csv_column | csv_column[]}
Strategy for duplicate rows: {strategy, identifiers, customFields}
Value transformations: {trimWhitespace, normalizeCase, dateFormat, numberFormat}
Multi-value delimiter config: {delimiter, customDelimiter, trimValues}
Chosen option per source value: {csv_column: {source_value: option_value}} (the import's options.valueMappings)
Source values to add as new select/multiselect options: {csv_column: [source_value]} (the import's options.newOptionValues)
Source system this template was designed for (e.g. 'shopify', 'magento2')
100
