shift 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.
A unit of scheduled work in a schedule.
The duration of a shift cannot be less than 1 minute or longer than 24 hours.
Methods
Method | Return Type | Description |
---|---|---|
Create shift | shift | Create a new shift. |
List shifts | shift collection | Get the list of shifts in this schedule. |
Get shift | shift | Get a shift by ID. |
Replace shift | shift | Replace a shift. |
Delete shift | None | Delete a shift from the schedule. |
Properties
Property | Type | Description |
---|---|---|
createdDateTime | DateTimeOffset | The timestamp on which this shift 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 . |
draftShift | shiftItem | The draft version of this shift that is viewable by managers. Required. |
id | String | ID of the shift. |
lastModifiedBy | identitySet | The identity that last updated this shift. |
lastModifiedDateTime | DateTimeOffset | The timestamp on which this shift 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 . |
| sharedShift | shiftItem | The shared version of this shift that is viewable by both employees and managers. Required. | | schedulingGroupId | String | ID of the scheduling group the shift is part of. Required. | | userId | String | ID of the user assigned to the shift. Required. |
JSON representation
The following is a JSON representation of the resource.
{
"createdDateTime": "DateTimeOffset",
"draftShift": { "@odata.type": "microsoft.graph.shiftItem" },
"id": "String",
"lastModifiedBy": { "@odata.type": "microsoft.graph.identitySet" },
"lastModifiedDateTime": "DateTimeOffset",
"schedulingGroupId": "String",
"sharedShift": { "@odata.type": "microsoft.graph.shiftItem" },
"userId": "String"
}
Feedback
Submit and view feedback for