Community articleCalendar event PUT9.0.1
Added by api wiki on October 23, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

Updates an event on a calendar on a Domino server.

 

Input
Method URI Description
PUT /{database}/api/calendar/events/{uid} Updates a calendar event on a Domino server.
PUT /{database}/api/calendar/events/{uid}/{recurrenceid} Updates an instance of a recurring calendar event on a Domino server.
Name Type Optional Description
database
string No th name of a database on the server relative to the data directory.
uid
string No Universal ID of the event.
recurrenceid
string Yes Recurrence ID of the event instance.This only used for update one instance of recurring event.
Name Type Optional Description
literally
boolean Yes When you use PUT to update an event and you do not include a DESCRIPTION property, the calendar
service preserves the existing the existing description including attachments. You can override this
behavior by including the URL parameter literally=true.
workflow
boolean Yes By default, the calendar service sends out workflow notices automatically for certain operations. You can disable implicit scheduling, by simply adding a workflow=false parameter to the request URL.
workflowcomment
string No When updating an existing event, you often want the implied workflow notice to be sent but you want a
comment to be included with the notice. To do this you add workflowcomment parameter to the request URL.
Name Type Optional Description
Content-Type
string No Specifies the type of content in the request body. The value can be either "application/json" or "text/calendar".
Output
Code Description
200
OK. Indicates that the event was updated successfully.
404
Not Found. Indicates the service can't find the event.
Examples
This request updates existing event
PUT /mail/sdayrn.nsf/api/calendar/events/77DE07AFA67E221200257BB100137F19-Lotus_Auto_Generated
Content-Type: application/json

{
  "x-lotus-charset":  {
    "data":"UTF-8"
  },
  "events": [
    {
      "href":"\/mail\/sqin.nsf\/api\/calendar\/events\/77DE07AFA67E221200257BB100137F19-Lotus_Auto_Generated",
      "id":"77DE07AFA67E221200257BB100137F19-Lotus_Auto_Generated",
      "summary":"event1",
      "start": {
        "date":"2013-07-26",
        "time":"01:25:00",
        "utc":true
      },
      "end": {
        "date":"2013-07-26",
        "time":"01:45:00",
        "utc":true
      },
      "class":"public",
      "transparency":"opaque",
      "sequence":0,
      "last-modified":"20130723T083203Z",
      "x-lotus-notesversion": {
        "data":"2"
      },
      "x-lotus-appttype": {
        "data":"0"
      }
    }
  ]
}

This request updates an instance of recurring event
PUT /mail/sdayrn.nsf/api/calendar/events/66FDECA308A64E5300257BB3002621B5-Lotus_Notes_Generated/20130728T070000Z
Content-Type: text/calendar

BEGIN:VCALENDAR
X-LOTUS-CHARSET:UTF-8
VERSION:2.0
PRODID:-//Lotus Development Corporation//NONSGML Notes 9.0//EN_API_S
BEGIN:VTIMEZONE
TZID:Greenwich
BEGIN:STANDARD
DTSTART:19500101T020000
TZOFFSETFROM:+0000
TZOFFSETTO:+0000
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
DTSTART;TZID="Greenwich":20130728T091000
DTEND;TZID="Greenwich":20130728T101000
TRANSP:OPAQUE
RECURRENCE-ID:20130728T070000Z
SEQUENCE:1
ATTENDEE;ROLE=CHAIR;PARTSTAT=ACCEPTED;CN="Samantha Daryn/Peaks";RSVP=FALSE
 :mailto:SamanthaDaryn@xyz.com
ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=DELEGATED;CN="User1/Peaks";RSVP=TRUE
 :mailto:User1@xyz.com
CLASS:PUBLIC
SUMMARY:repeat event
ORGANIZER;CN="Samantha Daryn/IBM";
 :mailto:SamanthaDaryn@xyz.com
UID:66FDECA308A64E5300257BB3002621B5-Lotus_Notes_Generated
X-LOTUS-BROADCAST:FALSE
X-LOTUS-NOTESVERSION:2
X-LOTUS-APPTTYPE:3
END:VEVENT
END:VCALENDAR