編輯

共用方式為


shiftActivity 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 activity in a shift.

Properties

Property Type Description
isPaid bool Indicates whether the microsoft.graph.user should be paid for the activity during their shift. Required.
startDateTime DateTimeOffset The start date and time for the shiftActivity. 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. Required.
endDateTime DateTimeOffset The end date and time for the shiftActivity. 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. Required.
code string Customer defined code for the shiftActivity. Required.
displayName string The name of the shiftActivity. Required.

Relationships

None.

JSON representation

The following JSON representation shows the resource type.

{
  "isPaid": true,
  "startDateTime": "2019-03-11T15:00:00Z",
  "endDateTime": "2019-03-11T15:15:00Z",
  "code": "",
  "displayName": "Lunch"
}