Get shift
Namespace: microsoft.graph
Retrieve the properties and relationships of a shift object by ID.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | Schedule.Read.All, Group.Read.All, Schedule.ReadWrite.All, Group.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Schedule.Read.All, Schedule.ReadWrite.All |
HTTP request
GET /teams/{teamId}/schedule/shifts/{shiftId}
Optional query parameters
This method does not support OData query parameters to customize the response.
Request headers
Header | Value |
---|---|
Authorization | Bearer {token}. Required. |
Request body
Do not supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and a shift object in the response body.
Example
Request
The following is an example of the request.
GET https://graph.microsoft.com/v1.0/teams/{teamId}/schedule/shifts/{shiftId}
Response
The following is an example of the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
{
"id": "SHFT_ca485cdd-a42c-4b93-9e6a-6fa54fd45fe1",
"createdDateTime": "2019-06-06T20:15:38.9Z",
"lastModifiedDateTime": "2019-11-18T01:12:08.318Z",
"schedulingGroupId": "TAG_d18fd675-3ac8-41b2-8038-d17fdac8b0d3",
"userId": "a7b0c8c4-3f5c-492f-ab13-40f0e0f0ffa8",
"draftShift": null,
"lastModifiedBy": {
"application": null,
"device": null,
"conversation": null,
"user": {
"id": "1c717a55-febd-4850-b5f6-101f3a29972c",
"displayName": "Sumanth Lingom"
}
}
}
Feedback
Submit and view feedback for