Capability Sources

Create an Outlook calendar event as the calling member

Changed on

Creates an event in the calling member's default calendar. Adding attendees sends Microsoft calendar invitations, so it requires confirmNotifications: true. isOnlineMeeting: true makes it a Teams meeting; check event.onlineMeetingUrl for the join link.

post/v1/capabilities/microsoft-365/calendar-events

Request

  • Base URL
    https://api.openworklabs.com
  • Auth
    • API key in header x-api-key
    • or HTTP bearer

Request body

Microsoft365CalendarEventBody required
subject, string required
body, string
bodyContentType, 'text' | 'html'

How Outlook stores body: text (default) or html. Use html for links, line breaks, tables, or an HTML signature; markup sent as text shows as literal tags.

start, string date-time required
end, string date-time required
timeZone, string
location, string
attendees, string[]
confirmNotifications, true

Required when attendees are listed. Set true only when the user explicitly asked to invite them; Microsoft emails each attendee an invitation.

isOnlineMeeting, boolean

true makes this a Teams meeting with a join link in the invitation. Do not put "Microsoft Teams Meeting" in location instead; that is only text.

onlineMeetingProvider, 'teamsForBusiness' | 'skypeForBusiness' | 'skypeForConsumer'

Online meeting service; teamsForBusiness when omitted. Only with isOnlineMeeting: true.

Response

Outlook calendar event created.

Microsoft365CalendarEventResponse required
ok, true required
event, Microsoft365CalendarEvent required
warning, string

Present when a Teams meeting was asked for but Microsoft returned no join link. The event exists; do not create it again.

Changes

    • info

      added the new optional request property isOnlineMeeting

    • info

      added the new optional request property onlineMeetingProvider

    • info

      added the optional property warning to the response with the status