Queue DE One Time File Import

POST https://{{et_subdomain}}.rest.marketingcloudapis.com/data/v1/async/import

https://developer.salesforce.com/docs/marketing/marketing-cloud/references/mc-importjobapi?meta=Queue+and+start+a+one-time+data+import

Queue and start a one-time import against a data extension without creating an import definition.

Note: If the file is on enhanced FTP, it will be removed once import finishes.

For testing purpose, it's advised to try with enhanced ftp file import first and then adapt other part by yourself.

Request Body

{"source"=>{"fileInfo"=>{"specifier"=>"{File_Name}", "contentType"=>"CSV", "standardQuotedStrings"=>true}}, "target"=>{"type"=>"DataExtension", "key"=>"{DE_Key}", "updateType"=>"Overwrite"}, "mapping"=>{"allowErrors"=>true, "fieldMappingType"=>"InferFromColumnHeadings"}, "transport"=>{"key"=>"{File_Location_Key}"}}