TNT Data Sync Import [CREATE]
Creates a new TNT Data Sync Import associated with the Account List. This endpoint expects a .tntmpd file to be uploaded using Content-Type "multipart/form-data", this makes the endpoint unique in that it does not expect JSON content. Unless otherwise specified, the Import will be created with "in_preview" set to false, which will cause the import to begin after being created (the import runs asynchronously as a background job).
Copy POST /api/v2/account_lists/2c16f23d-be97-4abd-8c47-6072fdb3b60c/imports/tnt_data_sync
Content-Type: multipart/form-data; boundary=----------XnJLe9ZIbbGUYtzPQJ16u1
Copy ------------XnJLe 9 ZIbbGUYtzPQJ 16 u 1
Content-Disposition: form-data; name= "data[type]"
imports
------------XnJLe 9 ZIbbGUYtzPQJ 16 u 1
Content-Disposition: form-data; name= "data[attributes][file]" ; filename= "tnt_data_sync_no_org_lowercase_fields.tntmpd"
Content-Type: text/plain
Content-Length: 607
[uploaded data]
------------XnJLe 9 ZIbbGUYtzPQJ 16 u 1
Content-Disposition: form-data; name= "data[attributes][importing]"
false
------------XnJLe 9 ZIbbGUYtzPQJ 16 u 1
Content-Disposition: form-data; name= "data[attributes][source]"
twitter
------------XnJLe 9 ZIbbGUYtzPQJ 16 u 1
Content-Disposition: form-data; name= "data[relationships][account_list][data][type]"
account_lists
------------XnJLe 9 ZIbbGUYtzPQJ 16 u 1
Content-Disposition: form-data; name= "data[relationships][account_list][data][id]"
2 c 16 f 23 d-be 97-4 abd -8 c 47-6072 fdb 3 b 60 c
------------XnJLe 9 ZIbbGUYtzPQJ 16 u 1
Content-Disposition: form-data; name= "data[relationships][user][data][type]"
users
------------XnJLe 9 ZIbbGUYtzPQJ 16 u 1
Content-Disposition: form-data; name= "data[relationships][user][data][id]"
5 c 00e24 a-e 395-4613-8e02-097160 a 12 c 91
------------XnJLe 9 ZIbbGUYtzPQJ 16 u 1
Content-Disposition: form-data; name= "data[relationships][source_account][data][type]"
facebook_accounts
------------XnJLe 9 ZIbbGUYtzPQJ 16 u 1
Content-Disposition: form-data; name= "data[relationships][source_account][data][id]"
5985 eba 4 -c 5 a 7-4 b 67-98 ef -827 f 416e40 fa
------------XnJLe 9 ZIbbGUYtzPQJ 16 u 1 --
Copy Content-Type: application/vnd.api+json; charset=utf-8
201 Created
Copy {
"data" : {
"id" : "45c82d55-64f9-46cc-a8d6-b663e809427b" ,
"type" : "imports" ,
"attributes" : {
"account_list_id" : "2c16f23d-be97-4abd-8c47-6072fdb3b60c" ,
"created_at" : "2022-01-12T17:18:19Z" ,
"file_constants" : {
} ,
"file_constants_mappings" : {
} ,
"file_headers" : {
} ,
"file_headers_mappings" : {
} ,
"file_url": "http://api.mpdx.test/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDVG9JYTJWNVNTSWhPR2s0Ym5WbWJUQXpkV1JqTlRSdWJ6UmtjVEpyT1cwd05XUm5jQVk2QmtWVU9oQmthWE53YjNOcGRHbHZia2tpQVlKaGRIUmhZMmh0Wlc1ME95Qm1hV3hsYm1GdFpUMGlkRzUwWDJSaGRHRmZjM2x1WTE5dWIxOXZjbWRmYkc5M1pYSmpZWE5sWDJacFpXeGtjeTUwYm5SdGNHUWlPeUJtYVd4bGJtRnRaU285VlZSR0xUZ25KM1J1ZEY5a1lYUmhYM041Ym1OZmJtOWZiM0puWDJ4dmQyVnlZMkZ6WlY5bWFXVnNaSE11ZEc1MGJYQmtCanNHVkRvUlkyOXVkR1Z1ZEY5MGVYQmxTU0lQZEdWNGRDOXdiR0ZwYmdZN0JsUTZFWE5sY25acFkyVmZibUZ0WlRvSmRHVnpkQT09IiwiZXhwIjoiMjAyMi0wMS0xMlQxNzoyMzoxOVoiLCJwdXIiOiJibG9iX2tleSJ9fQ==--6cb9b46e95daf4a4ebaf0312d51aa70865a5a5fb/tnt_data_sync_no_org_lowercase_fields.tntmpd",
"group_tags" : null ,
"groups" : [
] ,
"import_by_group" : false ,
"in_preview" : false ,
"override" : false ,
"source" : "tnt_data_sync" ,
"tag_list" : null ,
"updated_at" : "2022-01-12T17:18:19Z" ,
"updated_in_db_at" : "2022-01-12T17:18:19Z"
} ,
"relationships" : {
"user" : {
"data" : {
"id" : "5c00e24a-e395-4613-8e02-097160a12c91" ,
"type" : "users"
}
} ,
"sample_contacts" : {
"data" : [
]
}
}
}
}