편집

다음을 통해 공유


timeOffReason resource type

Namespace: microsoft.graph

Represents a valid reason to take time off in a schedule.

Methods

Method Return Type Description
List timeOffReason collection Get the list of timeOffReason in a schedule.
Create timeOffReason Create a new timeOffReason.
Get timeOffReason Get a timeOffReason by ID.
Replace timeOffReason Replace a timeOffReason.
Delete None Mark a timeOffReason as inactive.

Properties

Property Type Description
createdDateTime DateTimeOffset The time stamp on which this timeOffReason 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.
displayName String The name of the timeOffReason. Required.
iconType timeOffReasonIconType Supported icon types are: none, car, calendar, running, plane, firstAid, doctor, notWorking, clock, juryDuty, globe, cup, phone, weather, umbrella, piggyBank, dog, cake, trafficCone, pin, sunny. Required.
id String Unique identifier for the time-off reason.
isActive Boolean Indicates whether the timeOffReason can be used when creating new entities or updating existing ones. Required.
lastModifiedBy identitySet The identity that last updated this timeOffReason.
lastModifiedDateTime DateTimeOffset The time stamp on which this timeOffReason 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.

JSON representation

The following JSON representation shows the resource type.

{
  
  "createdDateTime": "String (timestamp)",
  "displayName": "String",
  "iconType": "String",
  "id": "String (identifier)",
  "isActive": "Boolean",
  "lastModifiedBy": { "@odata.type":"microsoft.graph.identitySet"},
  "lastModifiedDateTime": "String (timestamp)"
}