MPDX Developers
HomeHelp
Production
Production
  • Changelog
  • README
  • org_data_transfer
  • README
    • README
      • Account Lists
        • :Account List
        • Analytics
        • Chalkline Mail
        • Coaches
        • Designation Accounts
        • Donations
        • Donor Accounts
        • Entries
        • Financial Accounts
        • Imports
          • Csv
          • Google
          • Tnt
          • Tnt Data Sync
        • Invites
        • Mail Chimp Account
        • Merge
        • Notification Preferences
          • Bulk
        • Notifications
        • Pledges
        • Prayer Letters Account
        • Users
        • :account_list_id
          • Donations
        • :account_list_id
          • donations
            • Bulk
      • README
        • Impersonation
        • Organizations
        • Resets
      • Announcements
      • Appeals
        • Appeal Contacts
          • Bulk
        • Excluded Appeal Contacts
          • Bulk
      • Background Batches
      • Batch
      • Coaching
        • Answer Sets
        • Answers
        • Questions
      • Constants
      • Contacts
        • Addresses
        • Alma Mater Names
        • Analytics
        • Bulk
        • Church Names
        • Duplicates
        • README
        • Exports
          • Mailing
        • Filters
        • Merges
        • Partner Giving Analysis Filters
        • People
          • Bulk
          • Email Addresses
          • Facebook Accounts
          • Linkedin Accounts
          • Merges
          • Phones
          • Relationships
          • Twitter Accounts
          • Websites
        • Referrals
        • Referrers
        • Tags
          • Bulk
      • Deleted Records
      • Organizations
        • Account Lists
          • Account List Coaches
          • Account List Users
          • Invites
        • Admins
        • Contacts
        • Impersonation
        • Invites
      • Public
        • Designation Accounts
          • Subscriptions
      • README
        • Activity Results
        • Appointment Results
        • Donation Histories
        • Donation Monthly Totals
        • Donor Currency Donations
        • Entry Histories
        • Expected Monthly Totals
        • Goal Progress
        • Monthly Giving Graph
        • Monthly Losses Graphs
        • Partner Giving Analysis
        • People With Anniversaries
        • People With Birthdays
        • Pledge Histories
        • Salary Currency Donations
        • Tag Histories
        • Year Donations
      • Tasks
        • Analytics
        • Comments
        • Filters
        • Tags
      • README
        • Analytics
      • User
        • Account List Coaches
        • Announcements
        • Authenticate
        • Devices
        • Google Accounts
          • Google Integrations
        • Key Accounts
        • Notifications
        • Options
        • Organization Accounts
Powered by GitBook
On this page
  • TNT XML Import [CREATE]
  • Request
  • Response
  1. README
  2. README
  3. Account Lists
  4. Imports

Tnt

Tnt Documentation

TNT XML Import [CREATE]

Creates a new TNT XML Import associated with the Account List. This endpoint expects a TNT 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).

Request

Endpoint

POST /api/v2/account_lists/0b9f2001-bfea-4ed1-8723-a324695923a0/imports/tnt
Content-Type: multipart/form-data; boundary=----------XnJLe9ZIbbGUYtzPQJ16u1

Body

------------XnJLe9ZIbbGUYtzPQJ16u1
Content-Disposition: form-data; name="data[type]"

imports
------------XnJLe9ZIbbGUYtzPQJ16u1
Content-Disposition: form-data; name="data[attributes][file]"; filename="tnt_export.xml"
Content-Type: text/plain
Content-Length: 21325

[uploaded data]
------------XnJLe9ZIbbGUYtzPQJ16u1
Content-Disposition: form-data; name="data[attributes][importing]"

false
------------XnJLe9ZIbbGUYtzPQJ16u1
Content-Disposition: form-data; name="data[attributes][source]"

twitter
------------XnJLe9ZIbbGUYtzPQJ16u1
Content-Disposition: form-data; name="data[relationships][account_list][data][type]"

account_lists
------------XnJLe9ZIbbGUYtzPQJ16u1
Content-Disposition: form-data; name="data[relationships][account_list][data][id]"

0b9f2001-bfea-4ed1-8723-a324695923a0
------------XnJLe9ZIbbGUYtzPQJ16u1
Content-Disposition: form-data; name="data[relationships][user][data][type]"

users
------------XnJLe9ZIbbGUYtzPQJ16u1
Content-Disposition: form-data; name="data[relationships][user][data][id]"

3216495c-a81f-4fa1-9254-00d293551c57
------------XnJLe9ZIbbGUYtzPQJ16u1
Content-Disposition: form-data; name="data[relationships][source_account][data][type]"

facebook_accounts
------------XnJLe9ZIbbGUYtzPQJ16u1
Content-Disposition: form-data; name="data[relationships][source_account][data][id]"

d7f53ab0-3c4e-4a5d-833c-945dde1b7918
------------XnJLe9ZIbbGUYtzPQJ16u1--

Response

Headers

Content-Type: application/vnd.api+json; charset=utf-8
201 Created

Body

{
  "data": {
    "id": "f48d2ee7-3a3b-45fe-a82f-7de361ebed6e",
    "type": "imports",
    "attributes": {
      "account_list_id": "0b9f2001-bfea-4ed1-8723-a324695923a0",
      "created_at": "2022-01-12T17:18:56Z",
      "file_constants": {
      },
      "file_constants_mappings": {
      },
      "file_headers": {
      },
      "file_headers_mappings": {
      },
      "file_url": "http://api.mpdx.test/rails/active_storage/disk/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdDVG9JYTJWNVNTSWhaMnR4T0RadWQzTTJZMmxqTW5BM01HOXVkVEl5Y0hGalkzUjNOZ1k2QmtWVU9oQmthWE53YjNOcGRHbHZia2tpUzJGMGRHRmphRzFsYm5RN0lHWnBiR1Z1WVcxbFBTSjBiblJmWlhod2IzSjBMbmh0YkNJN0lHWnBiR1Z1WVcxbEtqMVZWRVl0T0NjbmRHNTBYMlY0Y0c5eWRDNTRiV3dHT3daVU9oRmpiMjUwWlc1MFgzUjVjR1ZKSWc5MFpYaDBMM0JzWVdsdUJqc0dWRG9SYzJWeWRtbGpaVjl1WVcxbE9nbDBaWE4wIiwiZXhwIjoiMjAyMi0wMS0xMlQxNzoyMzo1NloiLCJwdXIiOiJibG9iX2tleSJ9fQ==--ce187dc9b124959648223e5a43978e5a91a47660/tnt_export.xml",
      "group_tags": null,
      "groups": [

      ],
      "import_by_group": false,
      "in_preview": false,
      "override": false,
      "source": "tnt",
      "tag_list": null,
      "updated_at": "2022-01-12T17:18:56Z",
      "updated_in_db_at": "2022-01-12T17:18:56Z"
    },
    "relationships": {
      "user": {
        "data": {
          "id": "3216495c-a81f-4fa1-9254-00d293551c57",
          "type": "users"
        }
      },
      "sample_contacts": {
        "data": [

        ]
      }
    }
  }
}
PreviousGoogleNextTnt Data Sync

Last updated 3 years ago