Import LDIF
POST/api/addressbooks/:addressBookId/import-ldif
Reads an LDIF file sent as the request body (up to 100 MB, for example a Thunderbird address book export) and adds each entry as a new contact, returning the same counts as the vCard import.
Only the name (displayName, cn, or the cn in the DN), emails, phones and addresses are imported. An entry without a name uses its first email as the name; entries with neither are counted in skipped, and entries that fail are listed in errors.
Entries are never matched against existing contacts, so importing the same file twice creates duplicates.
Requires editor or admin; viewers get 403. Returns 400 if the body is empty or contains no entries.
Request
Responses
- 200
- 400
- 403
- 404
Import counts.
Request failed. error says why.
Request failed. error says why.
Request failed. error says why.