|
| 1 | +--- |
| 2 | +title: "Update recommendationConfiguration" |
| 3 | +description: "Update the properties of a recommendationConfiguration object." |
| 4 | +author: "mbrndiar" |
| 5 | +ms.date: 04/23/2025 |
| 6 | +ms.localizationpriority: medium |
| 7 | +ms.subservice: "entra-monitoring-health" |
| 8 | +doc_type: apiPageType |
| 9 | +--- |
| 10 | + |
| 11 | +# Update recommendationConfiguration |
| 12 | + |
| 13 | +Namespace: microsoft.graph |
| 14 | + |
| 15 | +[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] |
| 16 | + |
| 17 | +Update the properties of a recommendationConfiguration object. |
| 18 | + |
| 19 | +## Permissions |
| 20 | + |
| 21 | +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). |
| 22 | + |
| 23 | +<!-- { |
| 24 | + "blockType": "permissions", |
| 25 | + "name": "recommendationconfiguration-update-permissions" |
| 26 | +} |
| 27 | +--> |
| 28 | +[!INCLUDE [permissions-table](../includes/permissions/recommendationconfiguration-update-permissions.md)] |
| 29 | + |
| 30 | +[!INCLUDE [rbac-directory-recommendations-apis-write](../includes/rbac-for-apis/rbac-directory-recommendations-configuration-apis-write.md)] |
| 31 | + |
| 32 | +## HTTP request |
| 33 | + |
| 34 | +<!-- { |
| 35 | + "blockType": "ignored" |
| 36 | +} |
| 37 | +--> |
| 38 | +``` http |
| 39 | +PATCH /directory/recommendationConfiguration |
| 40 | +``` |
| 41 | + |
| 42 | +## Request headers |
| 43 | + |
| 44 | +|Name|Description| |
| 45 | +|:---|:---| |
| 46 | +|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).| |
| 47 | +|Content-Type|application/json. Required.| |
| 48 | + |
| 49 | +## Request body |
| 50 | + |
| 51 | +[!INCLUDE [table-intro](../../includes/update-property-table-intro.md)] |
| 52 | + |
| 53 | +|Property|Type|Description| |
| 54 | +|:---|:---|:---| |
| 55 | +|isNotificationEnabled|Boolean|Indicates whether notifications for recommendations are enabled. Required.| |
| 56 | + |
| 57 | +## Response |
| 58 | + |
| 59 | +If successful, this method returns a `204 OK` response code |
| 60 | + |
| 61 | +## Examples |
| 62 | + |
| 63 | +### Request |
| 64 | + |
| 65 | +The following example shows a request. |
| 66 | +<!-- { |
| 67 | + "blockType": "request", |
| 68 | + "name": "update_recommendationconfiguration" |
| 69 | +} |
| 70 | +--> |
| 71 | +``` http |
| 72 | +PATCH https://graph.microsoft.com/beta/directory/recommendationConfiguration |
| 73 | +Content-Type: application/json |
| 74 | +
|
| 75 | +{ |
| 76 | + "isNotificationEnabled": true |
| 77 | +} |
| 78 | +``` |
| 79 | + |
| 80 | +### Response |
| 81 | + |
| 82 | +The following example shows the response. |
| 83 | +>**Note:** The response object shown here might be shortened for readability. |
| 84 | +<!-- { |
| 85 | + "blockType": "response", |
| 86 | + "truncated": true |
| 87 | +} |
| 88 | +--> |
| 89 | +``` http |
| 90 | +HTTP/1.1 204 OK |
| 91 | +Content-Type: application/json |
| 92 | +``` |
0 commit comments