Results 1 to 4 of 4

Thread: update or replace address book records using REST

  1. #1
    gtr33m is offline Loyal Member
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    96
    Rep Power
    7

    Default update or replace address book records using REST

    Is there any way to update or replace address book records using a REST upload?

    I was looking at modifying the mysql tables directly, but using REST as per the documentation was very easy to set up as a recurring task.

    The only problem is that every new upload adds duplicates instead of updating or replacing.

    The data sync is one way to zimbra, and nothing is added or changed in zimbra, so as an alternative, wiping all records prior to upload is also an option.
    Mark Hawkins

    Medalist

  2. #2
    ljm
    ljm is offline Project Contributor
    Join Date
    May 2006
    Posts
    81
    Rep Power
    9

    Default use soap

    Last I looked the REST API didn't support unique identifers for contacts, so I suspect you can't use it to update/delete.

    Another option is the SOAP API, in particular: <ModifyContactRequest>.
    Zindus - contact sync for Thunderbird and Zimbra

  3. #3
    gtr33m is offline Loyal Member
    Join Date
    May 2008
    Location
    Melbourne, Australia
    Posts
    96
    Rep Power
    7

    Default

    What about just wiping them before upload? Any command I can issue that will wipe all records in the address book? This would accomplish what I'm after.
    Mark Hawkins

    Medalist

  4. #4
    ljm
    ljm is offline Project Contributor
    Join Date
    May 2006
    Posts
    81
    Rep Power
    9

    Default

    Via soap, you could call <GetContactsRequest> to get the contact ids, then feed them to <ContactActionRequest> to delete (or move to trash).

    If the addressbook is a user-created one rather than the built-in "Contacts" or "Emailed Contacts" then you could:
    - find the folder: <SearchRequest>
    - delete the folder: <FolderActionRequest>
    - create the folder: <CreateFolderRequest>

    see soap.txt for a description of the soap methods.
    Zindus - contact sync for Thunderbird and Zimbra

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. address book sync broken
    By drdrem in forum Error Reports
    Replies: 4
    Last Post: 03-04-2009, 06:55 AM
  2. Replies: 6
    Last Post: 09-26-2007, 12:38 PM
  3. Update Received Date in Folder-Listing
    By Oswald-Kolle in forum Installation
    Replies: 25
    Last Post: 08-21-2007, 04:21 PM
  4. [SOLVED] Zimbra not syncing properly with Address Book and iCal
    By Colin Day in forum CalDAV / CardDAV / iSync
    Replies: 4
    Last Post: 07-13-2007, 08:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •