Delete timeCard
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.
Delete a timeCard instance in a schedule.
This API is supported in the following national cloud deployments.
Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
---|---|---|---|
✅ | ❌ | ❌ | ❌ |
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.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Schedule.ReadWrite.All* |
* Important: When you use application permissions, you must include the
MS-APP-ACTS-AS
header in the request.
HTTP request
DELETE /teams/{teamId}/schedule/timeCards/{timeCardId}
Request headers
Header | Value |
---|---|
Authorization | Bearer {token}. Required. |
MS-APP-ACTS-AS | The ID of the user on behalf of whom the app is acting. Required when you use the application permission scope. |
Request body
Do not supply a request body for this method.
Response
If successful, this method returns a 204 No Content
response code.
Example
Request
The following is an example of the request.
DELETE https://graph.microsoft.com/beta/teams/871dbd5c-3a6a-4392-bfe1-042452793a50/schedule/timeCards/3895809b-a618-4c0d-86a0-d42b25b7d74f
Response
The following is an example of the response.
HTTP/1.1 204 No Content
Feedback
Submit and view feedback for