Create Events

    Creates an event in the specified calendar.

    API Type

    Service API

    Request URL

    https://apis.worksmobile.com/r/{API_ID}/calendar/v2/users/me/calendars/{calendarId}/events

    HTTP Method

    POST (Content-Type: application/json; charset=UTF-8)

    Path Parameters

    Parameter Type Required Description
    calendarId String Y Calendar ID. Set this parameter to “defaultCalendarId” to create an event in the default calendar.

    Request Body

    Property Type Required Description
    ical String Y iCalendar data (see iCalendar Data Format.)

    Request Example

    {
        "ical": "BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:Naver Calendar
    CALSCALE:GREGORIAN
    BEGIN:VTIMEZONE
    TZID:Asia/Seoul
    BEGIN:STANDARD
    DTSTART:19700101T000000
    TZNAME:GMT+09:00
    TZOFFSETFROM:+0900
    TZOFFSETTO:+0900
    END:STANDARD
    END:VTIMEZONE
    BEGIN:VEVENT
    SEQUENCE:0
    CLASS:PUBLIC
    TRANSP:OPAQUE
    UID:6E12DA93-8B43-4576-9A8A-31B4BDC8BDCF_xell_1409882048@example.com
    DTSTART;TZID=Asia/Seoul:20140905T110000
    DTEND;TZID=Asia/Seoul:20140905T120000
    SUMMARY:Repeat every week sample
    DESCRIPTION:Description
    LOCATION:Here
    RRULE:FREQ=WEEKLY;BYDAY=FR;INTERVAL=1;UNTIL=20141030T120000
    ORGANIZER;CN=Gildong Hong:mailto:gildong.hong@example.com
    ATTENDEE;ROLE=REQ-PARTICIPANT;PARTSTAT=NEEDS-ACTION;CN=Attendee:mailto:user01@example.com
    CREATED:20140905T015408Z
    LAST-MODIFIED:20140905T015408Z
    DTSTAMP:20140905T015409Z
    END:VEVENT
    END:VCALENDAR"
    }
    

    Response

    Property Type Required Description
    result String Y API request result
    code Integer Y HTTP status code
    returnValue Object Y Schedule creation information
        calendarId String Y Calendar ID
        processType String Y Process type
        icalUid String Y Event’s iCalendar UID

    Response Example

    {
        "result": "success",
        "code": 200,
        "returnValue": {
            "calendarId": "94e5c541-2f32-4eac-9ce1-0379917314e9",
            "processType": "create",
            "icalUid": "6E12DA93-8B43-4576-9A8A-31B4BDC8BDCF_xell_1409882048@example.com"
        }
    }