-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25761 from microsoftgraph/shiftsPromoteBetaToV1
Shifts promote beta to v1
- Loading branch information
Showing
33 changed files
with
866 additions
and
915 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
167 changes: 167 additions & 0 deletions
167
api-reference/v1.0/api/changetrackedentity-stagefordeletion.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
--- | ||
title: "changeTrackedEntity: stageForDeletion" | ||
description: "Stage the deletion of an openShift, shift, or timeOff instance in a [schedule](../resources/schedule.md) in draft mode." | ||
author: "raulfernandes" | ||
ms.localizationpriority: medium | ||
ms.subservice: "teams" | ||
doc_type: apiPageType | ||
ms.date: 11/30/2024 | ||
--- | ||
|
||
# changeTrackedEntity: stageForDeletion | ||
|
||
Namespace: microsoft.graph | ||
|
||
Stage the deletion of an [openShift](../resources/openshift.md), [shift](../resources/shift.md), or [timeOff](../resources/timeoff.md) instance in a [schedule](../resources/schedule.md) in draft mode. | ||
|
||
Draft changes are only visible to managers. Team members aren't sent notification for draft changes. The deletion is finalized when the schedule is [shared](../api/schedule-share.md). | ||
|
||
## Permissions | ||
|
||
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions [only if your app requires it](/graph/permissions-overview#best-practices-for-using-microsoft-graph-permissions). For details about delegated and application permissions, see [Permission types](/graph/permissions-overview#permission-types). To learn more about these permissions, see the [permissions reference](/graph/permissions-reference). | ||
|
||
<!-- { | ||
"blockType": "permissions", | ||
"name": "changetrackedentity-stagefordeletion-permissions" | ||
} | ||
--> | ||
[!INCLUDE [permissions-table](../includes/permissions/changetrackedentity-stagefordeletion-permissions.md)] | ||
|
||
## HTTP request | ||
|
||
For an **openShift**: | ||
<!-- { | ||
"blockType": "ignored" | ||
} | ||
--> | ||
``` http | ||
POST /teams/{teamsId}/schedule/openShifts/{openShiftId}/stageForDeletion | ||
``` | ||
|
||
For a **shift**: | ||
<!-- { | ||
"blockType": "ignored" | ||
} | ||
--> | ||
``` http | ||
POST /teams/{teamsId}/schedule/shifts/{shiftId}/stageForDeletion | ||
``` | ||
|
||
For a **timeOff**: | ||
<!-- { | ||
"blockType": "ignored" | ||
} | ||
--> | ||
``` http | ||
POST /teams/{teamsId}/schedule/timesOff/{timeOffId}/stageForDeletion | ||
``` | ||
|
||
## Request headers | ||
|
||
|Name|Description| | ||
|:---|:---| | ||
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).| | ||
| MS-APP-ACTS-AS | A user ID (GUID). Required only if the authorization token is an application token; otherwise, optional. | | ||
|
||
## Request body | ||
|
||
Don't supply a request body for this method. | ||
|
||
## Response | ||
|
||
If successful, this method returns a `204 No Content` response code. | ||
|
||
## Examples | ||
|
||
### Example 1: Stage the deletion of an openShift | ||
|
||
The following example shows how to stage the deletion of an **openShift** in a **schedule** in draft mode. | ||
|
||
#### Request | ||
|
||
The following example shows a request. | ||
|
||
<!-- { | ||
"blockType": "request", | ||
"name": "openshift.stagefordeletion", | ||
"sampleKeys": ["3d88b7a2-f988-4f4b-bb34-d66df66af126", "OPNSHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8"] | ||
} | ||
--> | ||
``` http | ||
POST https://graph.microsoft.com/v1.0/teams/3d88b7a2-f988-4f4b-bb34-d66df66af126/schedule/openShifts/OPNSHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8/stageForDeletion | ||
``` | ||
|
||
#### Response | ||
|
||
The following example shows the response. | ||
|
||
<!-- { | ||
"blockType": "response", | ||
"truncated": true | ||
} | ||
--> | ||
``` http | ||
HTTP/1.1 204 No Content | ||
``` | ||
|
||
### Example 2: Stage the deletion of a shift | ||
|
||
The following example shows how to stage the deletion of a **shift** in a **schedule** in draft mode. | ||
|
||
#### Request | ||
|
||
The following example shows a request. | ||
|
||
<!-- { | ||
"blockType": "request", | ||
"name": "shift.stagefordeletion", | ||
"sampleKeys": ["3d88b7a2-f988-4f4b-bb34-d66df66af126", "SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8"] | ||
} | ||
--> | ||
``` http | ||
POST https://graph.microsoft.com/v1.0/teams/3d88b7a2-f988-4f4b-bb34-d66df66af126/schedule/shifts/SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8/stageForDeletion | ||
``` | ||
|
||
#### Response | ||
|
||
The following example shows the response. | ||
|
||
<!-- { | ||
"blockType": "response", | ||
"truncated": true | ||
} | ||
--> | ||
``` http | ||
HTTP/1.1 204 No Content | ||
``` | ||
|
||
### Example 3: Stage the deletion of a timeOff | ||
|
||
The following example shows how to stage the deletion of a **timeOff** in a **schedule** in draft mode. | ||
|
||
#### Request | ||
|
||
The following example shows a request. | ||
|
||
<!-- { | ||
"blockType": "request", | ||
"name": "timeoff.stagefordeletion", | ||
"sampleKeys": ["3d88b7a2-f988-4f4b-bb34-d66df66af126", "SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8"] | ||
} | ||
--> | ||
``` http | ||
POST https://graph.microsoft.com/v1.0/teams/3d88b7a2-f988-4f4b-bb34-d66df66af126/schedule/timesOff/SHFT_577b75d2-a927-48c0-a5d1-dc984894e7b8/stageForDeletion | ||
``` | ||
|
||
#### Response | ||
|
||
The following example shows the response. | ||
|
||
<!-- { | ||
"blockType": "response", | ||
"truncated": true | ||
} | ||
--> | ||
``` http | ||
HTTP/1.1 204 No Content | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.