Düzenle

Aracılığıyla paylaş


calendar resource type

Namespace: microsoft.graph

Represents a container for event resources. It can be a calendar for a user, or the default calendar of a Microsoft 365 group.

Note: There are a few minor differences in the way you can interact with user calendars and group calendars:

  • You can organize only user calendars in a calendarGroup.
  • Outlook automatically accepts all meeting requests on behalf of groups. You can accept, tentatively accept, or decline meeting requests for user calendars only.
  • Outlook doesn't support reminders for group events. You can snooze or dismiss a reminder for user calendars only.

Methods

Method Return Type Description
List calendars calendar collection Get all the user's calendars, or the calendars in the default or other specific calendar group.
Create calendar calendar Create a new calendar in the default calendar group or specified calendar group for a user.
Get calendar calendar Get the properties and relationships of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group.
Update calendar calendar Update the properties of a calendar object. The calendar can be one for a user, or the default calendar of a Microsoft 365 group.
Delete calendar None Delete calendar object.
List calendar view event collection Get the occurrences, exceptions, and single instances of events in a calendar view defined by a time range, from the user's primary calendar (../me/calendarview) or from a specified calendar.
List events event collection Retrieve a list of events in a calendar. The list contains single instance meetings and series masters.
Create Event event Create a new event in the default or specified calendar.
Get free/busy schedule scheduleInformation collection Get the free/busy availability information for a collection of users, distributions lists, or resources, for a specified time period.
Find meeting times meetingTimeSuggestionsResult Suggest meeting times and locations based on organizer and attendee availability, and time or location constraints.
Create single-value property calendar Create one or more single-value extended properties in a new or existing calendar.
Get single-value property calendar Get calendars that contain a single-value extended property by using $expand or $filter.
Create multi-value property calendar Create one or more multi-value extended properties in a new or existing calendar.
Get multi-value property calendar Get a calendar that contains a multi-value extended property by using $expand.

Properties

Property Type Description
allowedOnlineMeetingProviders onlineMeetingProviderType collection Represent the online meeting service providers that can be used to create online meetings in this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness.
canEdit Boolean true if the user can write to the calendar, false otherwise. This property is true for the user who created the calendar. This property is also true for a user who has been shared a calendar and granted write access.
canShare Boolean true if the user has the permission to share the calendar, false otherwise. Only the user who created the calendar can share it.
canViewPrivateItems Boolean true if the user can read calendar items that have been marked private, false otherwise.
changeKey String Identifies the version of the calendar object. Every time the calendar is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.
color calendarColor Specifies the color theme to distinguish the calendar from other calendars in a UI. The property values are: auto, lightBlue, lightGreen, lightOrange, lightGray, lightYellow, lightTeal, lightPink, lightBrown, lightRed, maxColor.
defaultOnlineMeetingProvider onlineMeetingProviderType The default online meeting provider for meetings sent from this calendar. Possible values are: unknown, skypeForBusiness, skypeForConsumer, teamsForBusiness.
hexColor String The calendar color, expressed in a hex color code of three hexadecimal values, each ranging from 00 to FF and representing the red, green, or blue components of the color in the RGB color space. If the user has never explicitly set a color for the calendar, this property is empty. Read-only.
id String The calendar's unique identifier. Read-only.
isDefaultCalendar Boolean true if this is the default calendar where new events are created by default, false otherwise.
isRemovable Boolean Indicates whether this user calendar can be deleted from the user mailbox.
isTallyingResponses Boolean Indicates whether this user calendar supports tracking of meeting responses. Only meeting invites sent from users' primary calendars support tracking of meeting responses.
name String The calendar name.
owner emailAddress If set, this represents the user who created or added the calendar. For a calendar that the user created or added, the owner property is set to the user. For a calendar shared with the user, the owner property is set to the person who shared that calendar with the user.

Relationships

Relationship Type Description
calendarPermissions calendarPermission collection The permissions of the users with whom the calendar is shared.
calendarView Event collection The calendar view for the calendar. Navigation property. Read-only.
events Event collection The events in the calendar. Navigation property. Read-only.
multiValueExtendedProperties multiValueLegacyExtendedProperty collection The collection of multi-value extended properties defined for the calendar. Read-only. Nullable.
singleValueExtendedProperties singleValueLegacyExtendedProperty collection The collection of single-value extended properties defined for the calendar. Read-only. Nullable.

JSON representation

The following JSON representation shows the resource type.

{
  "allowedOnlineMeetingProviders": ["string"],
  "canEdit": "boolean",
  "canShare": "boolean",
  "canViewPrivateItems": "boolean",
  "changeKey": "string",
  "color": "String",
  "defaultOnlineMeetingProvider": "string",
  "hexColor": "String",
  "id": "string (identifier)",
  "isDefaultCalendar": "boolean",
  "isRemovable": "boolean",
  "isTallyingResponses": "boolean",
  "name": "string",
  "owner": {"@odata.type": "microsoft.graph.emailAddress"}
}