Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Calendar Object Update Via Soap? Or ICS Somehow?

  1. #1
    Join Date
    Jan 2007
    Location
    Fort Lauderdale, FL
    Posts
    151
    Rep Power
    8

    Default Calendar Object Update Via Soap? Or ICS Somehow?

    I've created an ICS file, and successfully put it into zimbra using the following URL:

    http://mail.server.com/zimbra/user/$username/calendar?fmt=ics

    It returns back a 1 if successful.

    How do I modify this calendar entry in the future? SOAP right?

    The SOAP documentation is very confusing and a little light.

    My first guess is that I need to search for it? Then I can modify it using SOAP? Or is there any easy way to update it by sending a new ICS file?

    <Envelope xmlns=\"http://www.w3.org/2003/05/soap-envelope\">
    <Body>
    <SearchCalendarResourcesRequest [attrs=\"a1,a2,a3\"] [sortBy=\"{sortBy}\"] [sortAscending=\"{sortAscending}\"] >
    <searchFilter>
    <conds [not=\"1|0\"] [or=\"1|0\"] >
    [<cond> or <conds>]+
    </conds> (exactly one instance of <conds>)

    -- or --

    <cond [not=\"1|0\"] attr=\"{attr}\" op=\"{op}\" value=\"{value}\" /> (exactly one instance of <cond>)
    </searchFilter>
    </SearchCalendarResourcesRequest>
    </Body>
    </Envelope>

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default Options

    You can modify the calendar via:
    • the web client
    • SOAP
    • POST of a new .ics file
    • CalDAV (work-in-progress)

    I think that POSTing a new .ics file should replace the existing data. If it doesn't, please file a bug report.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  3. #3
    Join Date
    Jan 2007
    Location
    Fort Lauderdale, FL
    Posts
    151
    Rep Power
    8

    Default what makes the ICS unique?

    Sorry, I'm a little new to ICS and SOAP. So as long as the UID from the ICS file is the same, it should just update the same event, and change the time/date/name/etc?

    That makes updating a calender object easy enough, and what is the easiest way to remove it, if it needs to be deleted? SOAP? Or can I send a blank ICS file.

    I appreciate your help!

  4. #4
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default Deleting an appointment

    Quote Originally Posted by phingers View Post
    Sorry, I'm a little new to ICS and SOAP. So as long as the UID from the ICS file is the same, it should just update the same event, and change the time/date/name/etc?
    I believe so.

    Quote Originally Posted by phingers View Post
    That makes updating a calender object easy enough, and what is the easiest way to remove it, if it needs to be deleted? SOAP? Or can I send a blank ICS file.
    Try either using SOAP or POSTing an ICS file containing a CANCEL.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  5. #5
    Join Date
    Jan 2007
    Location
    Fort Lauderdale, FL
    Posts
    151
    Rep Power
    8

    Default post a ics as admin user

    Is there someway to post an ICS file then as the Zimbra admin user to anyone's calendar? Or does it have to be done via soap?

  6. #6
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default Should work.

    That should work, but you need to be sure to use the admin port and to use HTTPS if needed.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  7. #7
    Join Date
    Jan 2007
    Location
    Fort Lauderdale, FL
    Posts
    151
    Rep Power
    8

    Default

    Sorry just to clarify then.

    http://mail.server.com/zimbra/user/$username/calendar?fmt=ics

    should be

    https://mail.server.com/zimbraAdmin/user/$username/calendar?fmt=ics

    So I can send it in as the admin user, and it wont show on the admin's calendar, but it will show on whomever is listed as attendee's in the ICS?

  8. #8
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default Give it a try!

    Quote Originally Posted by phingers View Post
    https://mail.server.com/zimbraAdmin/user/$username/calendar?fmt=ics
    I think the URL should be more like
    Code:
    https://mail.server.com:<adminport>/zimbraAdmin/service/user/<username>/calendar?fmt=ics
    But that's the general idea.

    Quote Originally Posted by phingers View Post
    So I can send it in as the admin user, and it wont show on the admin's calendar, but it will show on whomever is listed as attendee's in the ICS?
    The target is defined by the $username and the trailing path after it. So yes, if you specify a regular user, the POST should work.
    Bugzilla - Wiki - Downloads - Before posting... Search!

  9. #9
    Join Date
    Jan 2007
    Location
    Fort Lauderdale, FL
    Posts
    151
    Rep Power
    8

    Default

    https://mail.server.com:<adminport>/zimbraAdmin/service/user/<username>/calendar?fmt=ics

    I've tried that and

    https://mail.server.com:<adminport>/service/user/<username>/calendar?fmt=ics

    Neither seem to work, where is the documentation on these URLs and what are available?

  10. #10
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    Default What's the error code?

    What error are you getting?

    Documentation for the REST interface can be found in the source distribution and in the migration wiki.
    Bugzilla - Wiki - Downloads - Before posting... Search!

Similar Threads

  1. Update Received Date in Folder-Listing
    By Oswald-Kolle in forum Installation
    Replies: 25
    Last Post: 08-21-2007, 05:21 PM
  2. Outlook/Zimbra Private Appointments Issue
    By Smurthey in forum Zimbra Connector for Outlook
    Replies: 0
    Last Post: 03-09-2007, 07:29 AM
  3. Issues with Outlook Calendar Migration - ics
    By soxfan in forum Migration
    Replies: 2
    Last Post: 02-28-2007, 06:50 PM
  4. Replies: 2
    Last Post: 02-26-2007, 11:37 AM
  5. Replies: 1
    Last Post: 03-22-2006, 08:46 PM

Posting Permissions

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