Shift 资源类型
命名空间:microsoft.graph
重要
Microsoft Graph版本下的 /beta API 可能会发生更改。 不支持在生产应用程序中使用这些 API。 若要确定 API 是否在 v1.0 中可用,请使用 版本 选择器。
计划中的计划工作 单位。
方法
| 方法 | 返回类型 | 说明 |
|---|---|---|
| 创建班次 | shift | 新建 shift。 |
| 列出班次 | shift 集合 | 获取此 shifts 计划中的 列表。 |
| 获取班次 | shift | 按 ID 获取 shift。 |
| 替换班次 | shift | 更换 shift。 |
| 删除班次 | 无 | shift从计划中删除 。 |
属性
| 属性 | 类型 | 说明 |
|---|---|---|
| id | string |
shift 的 ID。 |
| userId | string |
分配给 的用户 shift的 ID。 必需。 |
| schedulingGroupId | string |
属于的计划组的 shift ID。 必需。 |
| sharedShift | shiftItem | 员工和经理 shift 都可查看的共享版本。 必需。 |
| draftShift | shiftItem | 经理可查看 shift 的此草稿版本。 必需。 |
| createdDateTime | DateTimeOffset |
首次创建此时间戳 shift 的时间戳。 时间戳类型表示采用 ISO 8601 格式的日期和时间信息,始终采用 UTC 时区。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z。 |
| lastModifiedDateTime | DateTimeOffset |
上次更新时间戳 shift 。 时间戳类型表示采用 ISO 8601 格式的日期和时间信息,始终采用 UTC 时区。 例如,2014 年 1 月 1 日午夜 UTC 为 2014-01-01T00:00:00Z。 |
| lastModifiedBy | identitySet | 上次更新 shift 的标识。 |
JSON 表示形式
下面是资源的 JSON 表示形式。
{
"id": "SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8",
"createdDateTime": "2019-03-14T04:32:51.451Z",
"lastModifiedDateTime": "2019-03-14T05:32:51.451Z",
"userId": "c5d0c76b-80c4-481c-be50-923cd8d680a1",
"schedulingGroupId": "TAG_228940ed-ff84-4e25-b129-1b395cf78be0",
"lastModifiedBy": {"@odata.type":"microsoft.graph.identitySet"},
"sharedShift": {"@odata.type":"microsoft.graph.shiftItem"},
"draftShift": {"@odata.type":"microsoft.graph.shiftItem"}
}
反馈
提交和查看相关反馈