Create or update calendar events
Added by IBM contributorAnna G O'Neal | Edited by Claudia R Elbourn on June 26, 2015
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Create or update events in the calendars of individual users based on their email addresses.

Table 1. API details

Method Resource address
PUT PUT /calendar/r/dav/calendar/<user_email><calendar_guid>/, where <user_email> is email address of the user, and <calendar_guid> is the globally unique identifier of the calendar.

The following code provides a sample implementation of the API. For details about using the API in your own development environment, see the Internet Engineering Task Force (IETF) Request for Comments (RFC) resources at the end of this topic.

Sample request


PUT https://mail-usw .lotuslive.com/calendar/r/dav/calendar/bgs_demo07%40try.lotuslive.com/8a869f8e35dc722f01360a2b61244352

/0DDC79F9-4134-4F41-925D-25D10EEE7AAE.ics HTTP/1.1

Host: mail-usw .lotuslive.com

User-Agent: iOS/5.0.1 (9A405) dataaccessd/1.0

Content-Length: 698

Accept: */*

If-None-Match: *

Accept-Encoding: gzip, deflate

Accept-Language: en-us

Content-Type: text/calendar; charset=utf-8

Cookie: JSESSIONID=9F29FF9F9A339EBD0D76F39224F3AABA

Authorization: Basic <base64 encoding of user_email:password>

Connection: keep-alive

Proxy-Connection: keep-alive

BEGIN:VCALENDAR

CALSCALE:GREGORIAN

PRODID:-//Apple Inc.//iOS 5.0.1//EN

VERSION:2.0

BEGIN:VTIMEZONE

TZID:Asia/Hong_Kong

BEGIN:DAYLIGHT

DTSTART:19790513T033000

RDATE:19790513T033000

TZNAME:HKT

TZOFFSETFROM:+0800

TZOFFSETTO:+0900

END:DAYLIGHT

BEGIN:STANDARD

DTSTART:19791021T033000

RDATE:19791021T033000

TZNAME:HKT

TZOFFSETFROM:+0900

TZOFFSETTO:+0800

END:STANDARD

END:VTIMEZONE

BEGIN:VEVENT

CREATED:20120503T074827Z

DTEND;TZID=Asia/Hong_Kong:20120503T170000

DTSTAMP:20120503T074843Z

DTSTART;TZID=Asia/Hong_Kong:20120503T160000

LAST-MODIFIED:20120503T074827Z

SEQUENCE:0

SUMMARY:Test event

TRANSP:OPAQUE

UID:0DDC79F9-4134-4F41-925D-25D10EEE7AAE

END:VEVENT

END:VCALENDAR

Response


Sample response


HTTP/1.1 201 Created

Server: nginx

Cache-Control: private, max-age=0

Expires: Thu May 03 07:48:44 GMT 2012

DAV: 1, access-control, calendar-access, calendar-schedule, calendar-proxy, calendar-auto-schedule

Content-Length: 0

Date: Thu, 03 May 2012 07:48:44 GMT

Connection: close

Set-Cookie: JSESSIONID=C54265BE7ED2DB42E14F8A6CA142456F; Path=/calendar; Secure

 

Related Resources

Web Distributed Authoring and Versioning (WebDAV) Access Control Protocol

Calendaring Extensions to WebDAV (CalDAV)

Internet Calendaring and Scheduling Core Object Specification (iCalendar)