Import vCards
POST/api/addressbooks/:addressBookId/import
Reads a vCard file sent as the request body (up to 100 MB) and adds each BEGIN:VCARD ... END:VCARD block as a new contact, returning how many cards were imported, skipped and failed.
UIDs in the file are ignored and every card gets a new UID, so importing the same file twice creates duplicates. Cards without a name are counted in skipped, cards that fail to save are listed in errors, and total is the number of cards found.
Requires editor or admin; viewers get 403. Returns 400 if the body is empty or contains no vCards.
Request
Responses
- 200
- 400
- 403
- 404
Import counts.
Request failed. error says why.
Request failed. error says why.
Request failed. error says why.