| title | Update inferenceclassificationoverride |
|---|---|
| description | Change the **classifyAs** field of an override as specified. |
| ms.localizationpriority | medium |
| author | SuryaLashmiS |
| ms.subservice | |
| doc_type | apiPageType |
| ms.date | 06/21/2024 |
Namespace: microsoft.graph
Change the classifyAs field of an override as specified.
You cannot use PATCH to change any other fields in an inferenceClassificationOverride instance.
If an override exists for a sender and the sender changes his/her display name, you can use POST to force an update to the name field in the existing override.
If an override exists for a sender and the sender changes his/her SMTP address, deleting the existing override and creating a new one with the new SMTP address is the only way to "update" the override for this sender.
[!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 /me/inferenceClassification/overrides/{id}
PATCH /users/{id}/inferenceClassification/overrides/{id}| Name | Type | Description |
|---|---|---|
| Authorization | string | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | string | Nature of the data in the body of an entity. Required. |
In the request body, supply the new value for classifyAs. For best performance you shouldn't include existing values that are not changing.
| Property | Type | Description |
|---|---|---|
| classifyAs | string | Specifies how incoming messages from a specific sender should always be classified as. The possible values are: focused, other. |
If successful, this method returns a 200 OK response code and updated inferenceClassificationOverride object in the response body.
The following example changes the override for the SMTP address randiw@contoso.com from other to focused.
PATCH https://graph.microsoft.com/v1.0/me/inferenceClassification/overrides/{id}
Content-type: application/json
{
"classifyAs": "focused"
}[!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]
The following example shows the response. Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
{
"classifyAs": "focused",
"senderEmailAddress": {
"name": "Randi Welch",
"address": "randiw@contoso.com"
},
"id": "98f5bdef-576a-404d-a2ea-07a3cf34af4r"
}