Community articleCalendar events POST9.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

Adds a new event to a calendar on a Domino server.

 

Input
Method URI Description
POST /{database}/api/calendar/events Adds a new event to a calendar on a Domino server.
Name Type Optional Description
database
string No Path name of a database on the server relative to the data directory.
Name Type Optional Description
workflow
boolean Yes If workflow=false, the service doesn't send out any invitations associated with the new event.
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
Name Type Optional Description
Location
string No URL of new event.
Code Description
201
OK. Indicates that the event was created successfully.
Examples
Create an event in iCalendar format
POST /mail/sdayrn.nsf/api/calendar/events HTTP/1.1
Host: zealand.xyz.com
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:VEVENT
DTSTART:20131201T130000Z
DTEND:20131201T140000Z
CLASS:PUBLIC
SUMMARY:Appointment 1
LOCATION:Location 1
END:VEVENT
END:VCALENDAR

Create an event in json format
POST /mail/sdayrn.nsf/api/calendar/events HTTP/1.1
Host: zealand.xyz.com
Content-Type: application/json

{
  "events": [
    {
      "summary":"Appointment 1",
      "location":"Location 1",
      "start": {
        "date":"2013-12-01",
        "time":"13:00:00",
        "utc":true
      },
      "end": {
        "date":"2013-12-01",
        "time":"14:00:00",
        "utc":true
      }
    }
  ]
}