const options = {
method: 'POST',
headers: {
'x-organization-id': '<x-organization-id>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({source_columns: ['<string>']})
};
fetch('https://api.dcycle.io/v2/imports/{import_id}/mapping/suggest', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"suggestions": {}
}Suggest source-to-target mapping for an import session.
const options = {
method: 'POST',
headers: {
'x-organization-id': '<x-organization-id>',
'x-api-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({source_columns: ['<string>']})
};
fetch('https://api.dcycle.io/v2/imports/{import_id}/mapping/suggest', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"suggestions": {}
}Input used to request automatic column mapping suggestions.
Successful Response
Suggested mapping for each template column.