timeOffReason resource type
Namespace: microsoft.graph
Important
APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
Represents a valid reason to take time off in a schedule.
Methods
Method | Return type | Description |
---|---|---|
Create | timeOffReason | Create a new timeOffReason. |
List | timeOffReason collection | Get the list of timeOffReason in a schedule. |
Get | timeOffReason | Get a timeOffReason by ID. |
Replace | timeOffReason | Replace a timeOffReason. |
Delete | None | Mark a timeOffReason as inactive. |
Properties
Property | Type | Description |
---|---|---|
code | String | The code of the timeOffReason to represent an external identifier. This field must be unique within the team in Microsoft Teams and uses an alphanumeric format, with a maximum of 100 characters. |
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",
"code": "String",
"iconType": "String",
"id": "String (identifier)",
"isActive": "Boolean",
"lastModifiedBy": { "@odata.type":"microsoft.graph.identitySet"},
"lastModifiedDateTime": "String (timestamp)"
}