Zimbra REST API Reference:Import Contacts: Difference between revisions
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
== REST API Method: Import Contacts == | == REST API Method: Import Contacts == | ||
Import contacts. | |||
=== URL === | === URL === |
Revision as of 15:54, 19 January 2010
<< Back to Zimbra REST API Reference
REST API Method: Import Contacts
Import contacts.
URL
http://localhost:7070/home/john.doe/contacts?{params}
HTTP Method
POST
Formats
csv,vcf
(Go to Response Formats)
Requires Authentication
true
(Go to Authentication)
Parameters
fmt
. Required. The import format. Defaults tocsv
.
Usage Examples
The following examples show using the curl utility to post a file to the REST command. Be sure to replace {username} and {password} with the account username and password.
Import contacts from CSV format:
curl -{username}:{password} --upload-file /tmp/mycontacts.csv http://localhost:7070/home/john.doe/contacts?fmt=csv
Import contacts from VCF format:
curl -{username}:{password} --upload-file /tmp/mycontact.vcf http://localhost:7070/home/john.doe/contacts?fmt=vcf