Download OpenAPI specification:Download
The Contact bulk load is a REST webservice that is used for importing a large number of contacts to a specific database table that should be already created inside the DANAconnect platform.
username
and password
in the DANAConnect platform. tableCode
.
The parameter tableCode
: corresponds to the logical code of the database that should have been previously created in the DANAConnect platform where you wish to import the data. This code can be found by entering the Contact Manager module inside the DANAConnect platform and looking for the database to be used in the database list.The API uses the same user credential system that is used to enter the DANAConnect platform.
The method used for all DANAConnect APIs is HTTP BASIC AUTH, which is based on login and password authentication.
Login: The login consists of the username concatenated with an @ and followed by the company code.
Login example:
Security Scheme Type | HTTP |
---|---|
HTTP Authorization Scheme | basic |
This service will import contacts from a file that will be inserted to the specified table. Where tableCode
is the identifier of a previously created contact list. This code can be found by clicking the desire contact list inside Contact Manager Module
tableCode required | string non-empty Contact List Identifier found in Contact Manager Module |
separator | string Default: "," Character that separates values inside the file |
delimiter | string Character that identifies where a value starts and where it ends |
includeHeaders | boolean Default: false Set to |
operationType | string Default: "INSALL"
|
encodingType | string File encoding type. Usually |
keyField | string Nullable This fields will be used to identify unique records in case an update is requested. If more than one field is needed, they should be separated by a semicolon(;) |
fieldsCode | string non-empty Column names separated by a semicolon(;). Should match the order presented in the file |
strict | boolean Default: true If set to |
file | string <binary> non-empty The file that will be sent has to be selected here |
callbackURL | string <url> Default: "" If specified, this URL will be called by the server with information about the request status. See POST JSON EXAMPLE:
|
curl -i -X POST \ -u <username@companycode>:<password> \ https://ws.danaconnect.com/api/contacts/rest/webdb/table/:tableCode \ -H 'Content-Type: multipart/form-data' \ -H 'Accept: application/json' \ -F 'delimiter="' \ -F 'encodingType=UTF-8' \ -F 'includeHeaders=false' \ -F 'operationType=INSALL' \ -F 'separator=,' \ -F 'strict=true' \ -F 'fieldsCode="TEST_NAME;TEST_LASTNAME;TEST_PHONE;TEST_EMAIL"' \ -F file=@/path/to/file/testFile.csv
Successful Response without any warnings
{- "fields": [
- "TEST_NAME",
- "TEST_LASTNAME",
- "TEST_PHONE",
- "TEST_EMAIL"
], - "fileName": "testFile.csv",
- "idCompany": "YourCompanyCode",
- "includeHeaders": false,
- "separator": ",",
- "status": true,
- "tableCode": "TestTableCode"
}
POST sent to the callback url if it was specified
{- "fileName": "s3://contactsfile/3233/Contacts.csv",
- "fileSize": 2910575,
- "logID": 9876,
- "result": "FINISHED",
- "idCompany": "CompanyCode",
- "idWebDb": 987,
- "lineCount": 7832,
- "movedFile": "processed/Log9876-webdb987"
}