| Welcome to the Zimbra :: Forums! | |
Welcome, if you would like to post a comment please register.
We also encourage you to explore all things Zimbra with our team and members of the community.
|  | | 
02-21-2007, 07:04 AM
| | Special Member | |
Posts: 151
| | 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> | 
02-21-2007, 02:43 PM
| | Zimbra Employee | |
Posts: 1,434
| | 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. | 
02-21-2007, 07:35 PM
| | Special Member | |
Posts: 151
| | 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! | 
02-22-2007, 12:17 AM
| | Zimbra Employee | |
Posts: 1,434
| | Deleting an appointment Quote:
Originally Posted by phingers 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 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. | 
02-24-2007, 09:30 PM
| | Special Member | |
Posts: 151
| | 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? | 
02-24-2007, 10:08 PM
| | Zimbra Employee | |
Posts: 1,434
| | Should work. That should work, but you need to be sure to use the admin port and to use HTTPS if needed. | 
02-25-2007, 09:39 AM
| | Special Member | |
Posts: 151
| | 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? | 
02-25-2007, 09:55 AM
| | Zimbra Employee | |
Posts: 1,434
| | Give it a try! Quote:
Originally Posted by phingers 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 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. | 
02-25-2007, 02:48 PM
| | Special Member | |
Posts: 151
| | 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? | | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |