|
| 1 | +--- |
| 2 | +title: "Update approvedClientApp" |
| 3 | +description: "Update the properties of an approvedClientApp object for the remoteDesktopSecurityConfiguration object." |
| 4 | +author: "mjsantani" |
| 5 | +ms.date: 11/11/2025 |
| 6 | +ms.localizationpriority: medium |
| 7 | +ms.subservice: "entra-applications" |
| 8 | +doc_type: apiPageType |
| 9 | +--- |
| 10 | + |
| 11 | +# Update approvedClientApp |
| 12 | + |
| 13 | +Namespace: microsoft.graph |
| 14 | + |
| 15 | +[!INCLUDE [beta-disclaimer](../../includes/beta-disclaimer.md)] |
| 16 | + |
| 17 | +Update the properties of an [approvedClientApp](../resources/approvedclientapp.md) object for a [remotedesktopsecurityconfiguration](../resources/remotedesktopsecurityconfiguration.md). |
| 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 | +<!-- { "blockType": "permissions", "name": "approvedclientapp_update" } --> |
| 24 | +[!INCLUDE [permissions-table](../includes/permissions/approvedclientapp-update-permissions.md)] |
| 25 | + |
| 26 | +[!INCLUDE [rbac-remote-desktop-security-config-apis](../includes/rbac-for-apis/rbac-remote-desktop-security-config-apis.md)] |
| 27 | + |
| 28 | +## HTTP request |
| 29 | + |
| 30 | +You can address the service principal using either its **id** or **appId**. **id** and **appId** are referred to as the **Object ID** and **Application (Client) ID**, respectively, in app registrations in the Microsoft Entra admin center. |
| 31 | + |
| 32 | +<!-- { |
| 33 | + "blockType": "ignored" |
| 34 | +} |
| 35 | +--> |
| 36 | +``` http |
| 37 | +PATCH /servicePrincipals/{id}/remoteDesktopSecurityConfiguration/approvedClientApps/{approvedClientAppId} |
| 38 | +PATCH /servicePrincipals(appId='{appId}')/remoteDesktopSecurityConfiguration/approvedClientApps/{approvedClientAppId} |
| 39 | +``` |
| 40 | + |
| 41 | +## Request headers |
| 42 | + |
| 43 | +|Name|Description| |
| 44 | +|:---|:---| |
| 45 | +|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).| |
| 46 | +|Content-Type|application/json. Required.| |
| 47 | + |
| 48 | +## Request body |
| 49 | + |
| 50 | +[!INCLUDE [table-intro](../../includes/update-property-table-intro.md)] |
| 51 | + |
| 52 | + |
| 53 | +|Property|Type|Description| |
| 54 | +|:---|:---|:---| |
| 55 | +|displayName|String|Display name of the Client Application. Optional.| |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +## Response |
| 60 | + |
| 61 | +If successful, this method returns a `200 OK` response code and an updated [approvedClientApp](../resources/approvedclientapp.md) object in the response body. |
| 62 | + |
| 63 | +## Examples |
| 64 | + |
| 65 | +### Request |
| 66 | + |
| 67 | +The following example shows a request. |
| 68 | +<!-- { |
| 69 | + "blockType": "request", |
| 70 | + "name": "update_approvedclientapp" |
| 71 | +} |
| 72 | +--> |
| 73 | +``` http |
| 74 | +PATCH https://graph.microsoft.com/v1.0/servicePrincipals/00af5dfb-85da-4b41-a677-0c6b86dd34f8/remoteDesktopSecurityConfiguration/approvedClientApps/95bd8f3d-e166-c072-4e28-af935a6d237f |
| 75 | +Content-Type: application/json |
| 76 | +
|
| 77 | +{ |
| 78 | + "@odata.type": "#microsoft.graph.approvedClientApp", |
| 79 | + "displayName": "Client App 1" |
| 80 | +} |
| 81 | +``` |
| 82 | + |
| 83 | + |
| 84 | +### Response |
| 85 | + |
| 86 | +The following example shows the response. |
| 87 | +>**Note:** The response object shown here might be shortened for readability. |
| 88 | +<!-- { |
| 89 | + "blockType": "response", |
| 90 | + "truncated": true, |
| 91 | + "@odata.type": "microsoft.graph.approvedClientApp" |
| 92 | +} |
| 93 | +--> |
| 94 | +``` http |
| 95 | +HTTP/1.1 200 OK |
| 96 | +Content-Type: application/json |
| 97 | +
|
| 98 | +{ |
| 99 | + "@odata.type": "#microsoft.graph.approvedClientApp", |
| 100 | + "id": "95bd8f3d-e166-c072-4e28-af935a6d237f", |
| 101 | + "displayName": "Client App 1" |
| 102 | +} |
| 103 | +``` |
| 104 | + |
0 commit comments