timeOff resource type

Namespace: microsoft.graph

A unit of non-work in a schedule.

Methods

Method Return Type Description
List timeOff collection Get the list of timeOff objects in this schedule.
Create timeOff Create a new timeOff object.
Get timeOff Get a timeOff object by ID.
Replace timeOff Replace a timeOff object.
Delete None Delete a timeOff object from the schedule.

Properties

Name Type Description
id string ID of the timeOff.
userId string ID of the user assigned to the timeOff. Required.
sharedTimeOff timeOffItem The shared version of this timeOff that is viewable by both employees and managers. Required.
draftTimeOff timeOffItem The draft version of this timeOff that is viewable by managers. Required.
createdDateTime DateTimeOffset The time stamp at which this timeOff was first created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
lastModifiedDateTime DateTimeOffset The time stamp at which this timeOff was last updated. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
lastModifiedBy identitySet The identity that last updated this timeOff.

JSON representation

The following is a JSON representation of the resource.

{
  "userId": "string (identifier)",
  "createdDateTime": "String (timestamp)",
  "lastModifiedDateTime": "String (timestamp)",
  "lastModifiedBy": {"@odata.type":"microsoft.graph.identitySet"},
  "sharedTimeOff": {"@odata.type":"microsoft.graph.timeOffItem"},
  "draftTimeOff": {"@odata.type":"microsoft.graph.timeOffItem"}
}