| title | Update retentionLabel |
|---|---|
| description | Update the properties of a retentionLabel object. |
| author | sseth |
| ms.localizationpriority | medium |
| ms.subservice | security |
| doc_type | apiPageType |
| ms.date | 04/05/2024 |
Namespace: microsoft.graph.security
[!INCLUDE beta-disclaimer]
Update the properties of a retentionLabel object.
To update a disposition review stage, include the actionAfterRetentionPeriod property in the request body with one of the possible values specified.
[!INCLUDE national-cloud-support]
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. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
PATCH /security/labels/retentionLabels/{retentionLabelId}
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
[!INCLUDE table-intro]
| Property | Type | Description |
|---|---|---|
| descriptionForAdmins | String | This is an optional property that provides the label information for the admin. |
| descriptionForUsers | String | This is an optional property that provides the label information for the user. |
| dispositionReviewStages | microsoft.graph.security.dispositionReviewStage collection | Review stages during which reviewers are notified to determine whether a document must be deleted or retained. |
| retentionDuration | microsoft.graph.security.retentionDuration | Specifies the number of days to retain the content. |
| defaultRecordBehavior | microsoft.graph.security.defaultRecordBehavior | Specifies the locked or unlocked state of a record label when it is created. The possible values are: startLocked, startUnlocked, unknownFutureValue. |
| labelToBeApplied | String | Specifies the replacement label to be applied automatically after the retention period of the current label ends. |
If successful, this method returns a 204 No Content response code.
Here's an example of a request.
PATCH https://graph.microsoft.com/beta/security/labels/retentionLabels/9563a605-e827-4324-a5a9-09efddff1e50
Content-Type: application/json
Content-length: 555
{
"@odata.type": "#microsoft.graph.security.retentionLabel",
"retentionDuration": {
"@odata.type": "microsoft.graph.security.retentionDurationInDays",
"days": 2555
},
}[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
Here's an example of the response.
HTTP/1.1 204 No Content