curl -X POST "https://atlasemoji--epicatlas-4361e.us-east4.hosted.app/api/datasynch/master-tables/import" \
-H "content-type: application/json" \
-H "x-api-key: $ATLAS_DATASYNCH_API_KEY" \
--data '{
"manifestId": "manifest_demo_001",
"targetTable": "locations",
"sourceKind": "manual",
"connectorId": "developer-center",
"connectionName": "Developer Center example",
"records": [
{
"externalId": "SEA-DC-001",
"recordType": "distribution_center",
"fields": {
"name": "Seattle Distribution Center",
"addressLine1": "100 Logistics Way",
"city": "Seattle",
"state": "WA",
"postalCode": "98134",
"country": "US",
"latitude": 47.5899,
"longitude": -122.3315,
"locationType": "distribution_center"
},
"metadata": {
"source": "developer_center_example"
}
}
]
}'
const response = await fetch('/api/datasynch/master-tables/import', {
method: 'POST',
headers: {
'content-type': 'application/json',
'x-api-key': process.env.ATLAS_DATASYNCH_API_KEY ?? ''
},
body: JSON.stringify({
"manifestId": "manifest_demo_001",
"targetTable": "locations",
"sourceKind": "manual",
"connectorId": "developer-center",
"connectionName": "Developer Center example",
"records": [
{
"externalId": "SEA-DC-001",
"recordType": "distribution_center",
"fields": {
"name": "Seattle Distribution Center",
"addressLine1": "100 Logistics Way",
"city": "Seattle",
"state": "WA",
"postalCode": "98134",
"country": "US",
"latitude": 47.5899,
"longitude": -122.3315,
"locationType": "distribution_center"
},
"metadata": {
"source": "developer_center_example"
}
}
]
})
});
const data = await response.json();