openShift 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 an unassigned open shift in a schedule.

Inherits from changeTrackedEntity.

Methods

Method Return Type Description
List openShifts openShift collection Get the list of openShift in a schedule.
Create openShift openShift Create a new openShift.
Get openShift openShift Get an openShift by ID.
Update openShift openShift Update an openShift.
Delete openShift None Delete an openShift from the schedule.
Get open shifts across all joined teams openShift collection Get all openShift objects across all teams a user is a direct member of.
Stage for deletion None Stage the deletion of an openShift instance in a schedule in draft mode.

Properties

Property Type Description
createdBy identitySet Identity of the user who created the openShift object. Inherited from changeTrackedEntity.
createdDateTime DateTimeOffset Date and time when the openShift was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Inherited from changeTrackedEntity.
draftOpenShift openShiftItem Draft changes in the openShift are only visible to managers until they're shared.
id String Unique identifier for the openShift object. Read-only. Inherited from changeTrackedEntity.
isStagedForDeletion Boolean The openShift is marked for deletion, a process that is finalized when the schedule is shared.
lastModifiedBy identitySet Identity of the user who last modified the openShift object. Inherited from changeTrackedEntity.
lastModifiedDateTime DateTimeOffset Date and time when the openShift was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Inherited from changeTrackedEntity.
schedulingGroupId String The ID of the schedulingGroup that contains the openShift.
schedulingGroupInfo schedulingGroupInfo Information about the scheduling group to which the shift belongs.
sharedOpenShift openShiftItem The shared version of this openShift that is viewable by both employees and managers.
teamInfo shiftsTeamInfo Information of the team that the openShift is in.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

{
  "@odata.type": "#microsoft.graph.openShift",
  "createdBy": {"@odata.type": "microsoft.graph.identitySet"},
  "createdDateTime": "String (timestamp)",
  "draftOpenShift": {"@odata.type": "microsoft.graph.openShiftItem"},
  "id": "String (identifier)",
  "isStagedForDeletion": "Boolean",
  "lastModifiedBy": {"@odata.type": "microsoft.graph.identitySet"},
  "lastModifiedDateTime": "String (timestamp)",
  "schedulingGroupId": "String",
  "schedulingGroupInfo": "microsoft.graph.schedulingGroupInfo",
  "sharedOpenShift": {"@odata.type": "microsoft.graph.openShiftItem"},
  "teamInfo": "microsoft.graph.shiftsTeamInfo"
}