1

I'm using the webdav protocol to create event on icloud calendar, with this request :

BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//CALENDARSERVER.ORG//NONSGML Version 1//EN
BEGIN:VEVENT
UID:[email protected]
DTSTART:START_DATE
DTEND:END_DATE
SUMMARY:New event
ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:EMAIL1
ATTENDEE;PARTSTAT=NEEDS-ACTION;ROLE=REQ-PARTICIPANT;RSVP=TRUE:mailto:EMAIL2
END:VEVENT
END:VCALENDAR

Everything works fine, attendees are even added to the event, but I would like the server to send them invitations to the event.

Does anyone knows if / how is this possible ?

1
  • Hi @Nico, I have a problem in creating new event for iCloud Calendar. Somehow, it always results 400 Bad Request. I have used PUT for the method, set If-None-Match: * for the header and set this https://p46-caldav.icloud.com/[USER_ID]/calendars/work/dfsfsdfsfsfsfsdfsdfsdf.ics as uri destination . Do you have any idea what possibly happens? Commented Jun 6, 2018 at 11:25

1 Answer 1

2

Yes, this is possible. The iCloud calendar supports scheduling as described in RFC 6638. Note that if an attendee has an iCloud account (the email is registered as an Apple-ID used with iCloud) the server won't send out emails. It will put the meeting request directly into the attendee's iCloud calendar and the matching iTIP into the attendees Inbox DAV collection.

In your case iCloud doesn't detect you as the organizer of the event and in consequence doesn't schedule the event as a meeting. To fix this, you need to add a proper ORGANIZER line. And if you don't want to confuse iCal.app, quite likely a matching ATTENDEE line.

Sample:

ORGANIZER;CN=Mister Awesome:mailto:[email protected]
ATTENDEE;CN=Mister Awesome:mailto:[email protected]
ATTENDEE;CN=Donald Duck:mailto:[email protected]
ATTENDEE;CN=Nicola Tesla:mailto:[email protected]

Assuming Nicola isn't registered in iCloud, he'll get an email invite (multipart part email with some webpage and the iMIP request). Donald won't get an email, the meeting will show up in his calendar right away, and he'll get a notification box in iCal.

The important part is that the ORGANIZER's email matches the iCloud account you are using to create the event. Ie when PUTting the event, you must be logged in as [email protected].

Note that the reverse is true as well. If you want to reply to a meeting invite (e.g. by setting the PARTSTAT of your attendee to ACCEPTED), you can need to be logged in as that meeting attendee.

P.S.: An iCloud user can tweak the email behavior in the iCloud calendar webapp preferences.

Sign up to request clarification or add additional context in comments.

2 Comments

The same approach works for updates. But remember that only the organizer can update event properties (like start/enddate). Attendees can only update their participation status (well and some personal properties like alarms). If it doesn't work, the most likely cause is that the identities don't match up.
"only the organizer can update event properties" - assuming this isn't a shared calendar. In a shared calendars all sharee's with write permission can update the event (and will act on behalf of the organizer)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.