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
Asynchronously assign a sensitivity label to a [driveItem][item-resource].
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
-
> [!NOTE]
21
-
> This is a metered API and some charges for use may apply. For details, see [Overview of metered Microsoft 365 APIs in Microsoft Graph](/graph/metered-api-overview). Before you call this API, you must [Enable metered APIs and services in Microsoft Graph](/graph/metered-api-setup?tabs=azurecloudshell).
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
+
22
+
> [!NOTE]
23
+
> This is a metered API and some charges for use may apply. For details, see [Overview of metered Microsoft 365 APIs in Microsoft Graph](/graph/metered-api-overview). Before you call this API, you must [Enable metered APIs and services in Microsoft Graph](/graph/metered-api-setup?tabs=azurecloudshell).
22
24
23
25
This API applies sensitivity labels to files at rest. Office clients don't apply watermarks, headers, or footers to files that contain the label information. 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).
24
26
@@ -30,7 +32,8 @@ Choose the permission or permissions marked as least privileged for this API. Us
> This API isn't supported for Microsoft SharePoint Embedded containers.
34
37
35
38
## HTTP request
36
39
@@ -71,7 +74,7 @@ If successful, the API returns a `202 Accepted` HTTP response code with an empty
71
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).
72
75
73
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.
74
-
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.
75
78
76
79
The following table lists the possible values for the error types.
77
80
@@ -117,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.
121
-
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).
122
126
123
127
### Remarks
124
-
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).
Asynchronously assign a sensitivity label to a [driveItem][item-resource].
15
15
16
-
This API is part of Microsoft SharePoint and OneDrive APIs that perform advanced premium administrative functions and is considered a protected API. Protected APIs require you to have additional validation, beyond permission and consent, before you can use them. Before you call this API, you must [Enable metered APIs and services in Microsoft Graph](/graph/metered-api-setup).
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
20
20
> [!NOTE]
21
-
> This is a metered API and some charges for use may apply. For details, see [Overview of metered Microsoft 365 APIs in Microsoft Graph](/graph/metered-api-overview).
21
+
> This is a metered API and some charges for use may apply. For details, see [Overview of metered Microsoft 365 APIs in Microsoft Graph](/graph/metered-api-overview). Before you call this API, you must [Enable metered APIs and services in Microsoft Graph](/graph/metered-api-setup?tabs=azurecloudshell).
22
+
23
+
This API applies sensitivity labels to files at rest. Office clients don't apply watermarks, headers, or footers to files that contain the label information. 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).
> This API isn't supported for Microsoft SharePoint Embedded containers.
32
35
33
36
## HTTP request
34
37
@@ -66,10 +69,10 @@ In the request body, provide the ID for the sensitivity label that is to be assi
66
69
## Response
67
70
68
71
If successful, the API returns a `202 Accepted` HTTP response code with an empty response body. The `Location` header provides the URL to get operation details.
69
-
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).
72
+
For more information about how to monitor the progress of an assignSensitivityLabel operation, see [monitoring long-running operations](/graph/long-running-actions-overview).
70
73
71
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.
72
-
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.
73
76
74
77
The following table lists the possible values for the error types.
The value of the `Location` header provides a URL for a service that returns the current state of the assign sensitivity label operation.
119
-
You can use this information to [determine when the assign sensitivity label operation has finished](/graph/long-running-actions-overview).
121
+
122
+
The value of the `Location` header provides a URL for a service that returns the current state of the assignSensitivityLabel operation.
123
+
You can use this information to [determine when the assignSensitivityLabel operation finishes](/graph/long-running-actions-overview).
120
124
121
125
### Remarks
122
-
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. Audit events for both success and failure cases are logged. For more information, see [Audit log activities](/purview/audit-log-activities#sensitivity-label-activities).
126
+
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