You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-reference/beta/api/driveitem-assignsensitivitylabel.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ Namespace: microsoft.graph
15
15
16
16
Asynchronously assign a sensitivity label to a [driveItem][item-resource].
17
17
18
-
This API is part of the Microsoft SharePoint and OneDrive APIs that perform advanced premium administrative functions, and is considered a protected API. Protected APIs require you to have more validation, beyond permission and consent, before you can use them.
18
+
This API is part of the Microsoft SharePoint and OneDrive APIs that perform advanced premium administrative functions, and is considered as protected. Protected APIs require you to have more validations, beyond permission and consent, before you can use them.
19
19
20
20
For more information about sensitivity labels from an administrator's perspective, see [Enable sensitivity labels for Office files in SharePoint and OneDrive](/microsoft-365/compliance/sensitivity-labels-sharepoint-onedrive-files?view=o365-worldwide&preserve-view=true).
21
21
@@ -74,7 +74,7 @@ If successful, the API returns a `202 Accepted` HTTP response code with an empty
74
74
For more information about how to monitor the progress of an assign sensitivity label operation, see [monitoring long-running operations](/graph/long-running-actions-overview).
75
75
76
76
In addition to general errors that apply to Microsoft Graph, this API returns the `423 Locked` response code, which indicates that the file being accessed is locked. In such cases, the **code** property of the response object indicates the error type that blocks the operation.
77
-
Also, Few Irm Protected sensitivity labels can't be updated by Application and need delegated user access to validate if the user has proper rights. For these scenarios, the API throws `Not Supported` response code.
77
+
Also, some IRM Protected sensitivity labels can't be updated in app-only mode and need delegated user access to validate if the user has proper rights. For these scenarios, the API throws `Not Supported` response code.
78
78
79
79
The following table lists the possible values for the error types.
80
80
@@ -120,10 +120,12 @@ The following example shows the response.
The value of the `Location` header provides a URL for a service that will return the current state of the assign sensitivity label operation.
124
-
You can use this information to [determine when the assign sensitivity label operation has finished](/graph/long-running-actions-overview).
123
+
124
+
The value of the `Location` header provides a URL for a service that will return the current state of the assignSensitivityLabel operation.
125
+
You can use this information to [determine when the assignSensitivityLabel operation has finished](/graph/long-running-actions-overview).
125
126
126
127
### Remarks
127
-
The response from the API only indicates that the assign sensitivity label operation was accepted or rejected. The operation might be rejected, for example, if the file type isn't supported, or the file is double encrypted.
128
+
129
+
The response from the API only indicates that the assignSensitivityLabel operation was accepted or rejected. The operation might be rejected, for example, if the file type isn't supported, or the file is double encrypted. Audit events for both success and failure cases are logged. For more information, see [Audit log activities](/purview/audit-log-activities#sensitivity-label-activities).
Copy file name to clipboardExpand all lines: api-reference/v1.0/api/driveitem-assignsensitivitylabel.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Namespace: microsoft.graph
13
13
14
14
Asynchronously assign a sensitivity label to a [driveItem][item-resource].
15
15
16
-
This API is part of the Microsoft SharePoint and OneDrive APIs that perform advanced premium administrative functions, and is considered a protected API. Protected APIs require you to have more validation, beyond permission and consent, before you can use them.
16
+
This API is part of the Microsoft SharePoint and OneDrive APIs that perform advanced premium administrative functions, and is considered as protected. Protected APIs require you to have more validations, beyond permission and consent, before you can use them.
17
17
18
18
For more information about sensitivity labels from an administrator's perspective, see [Enable sensitivity labels for Office files in SharePoint and OneDrive](/microsoft-365/compliance/sensitivity-labels-sharepoint-onedrive-files?view=o365-worldwide&preserve-view=true).
19
19
@@ -72,7 +72,7 @@ If successful, the API returns a `202 Accepted` HTTP response code with an empty
72
72
For more information about how to monitor the progress of an assignSensitivityLabel operation, see [monitoring long-running operations](/graph/long-running-actions-overview).
73
73
74
74
In addition to general errors that apply to Microsoft Graph, this API returns the `423 Locked` response code, which indicates that the file being accessed is locked. In such cases, the **code** property of the response object indicates the error type that blocks the operation.
75
-
Also, Few Irm Protected sensitivity labels can't be updated by Application and need delegated user access to validate if the user has proper rights, and for these scenarios the API returns a `Not Supported` response code.
75
+
Also, some IRM Protected sensitivity labels can't be updated in app-only mode and need delegated user access to validate if the user has proper rights, and for these scenarios the API returns a `Not Supported` response code.
76
76
77
77
The following table lists the possible values for the error types.
78
78
@@ -118,10 +118,12 @@ The following example shows the response.
The value of the `Location` header provides a URL for a service that returns the current state of the assignSensitivityLabel operation.
122
123
You can use this information to [determine when the assignSensitivityLabel operation finishes](/graph/long-running-actions-overview).
123
124
124
125
### Remarks
126
+
125
127
The response from the API only indicates that the assignSensitivityLabel operation was accepted or rejected. The operation might be rejected, for example, if the file type isn't supported, or the file is double encrypted. Audit events for both success and failure cases are logged. For more information, see [Audit log activities](/purview/audit-log-activities#sensitivity-label-activities).
0 commit comments