---
title: "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecommendationsService/accounts/{accountName}"
method: PATCH
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecommendationsService/accounts/{accountName}"
---

# PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecommendationsService/accounts/{accountName}

`PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecommendationsService/accounts/{accountName}`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecommendationsService/accounts/{accountName}`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Updates RecommendationsService Account details.

## Path parameters

- `accountName` string, required

## Parameters

- `../../../../../../common-types/resource-management/v2/types.json#/components/parameters/ApiVersionParameter` (unresolved $ref)
- `../../../../../../common-types/resource-management/v2/types.json#/components/parameters/SubscriptionIdParameter` (unresolved $ref)
- `../../../../../../common-types/resource-management/v2/types.json#/components/parameters/ResourceGroupNameParameter` (unresolved $ref)

## Request body

- AccountPatchResource: Account resource patch details.
  - `tags` Tags: Resource tags.
  - `properties` object: Account resource patch properties.
    - `endpointAuthentications` EndpointAuthentication[]: The list of service endpoints authentication details.
      - `aadTenantID` string: AAD tenant ID.
      - `principalID` string: AAD principal ID.
      - `principalType` 'Application' | 'User': AAD principal type.
    - `cors` CorsRule[]: The list of CORS details.
      - `allowedOrigins` string[], required: The origin domains that are permitted to make a request against the service via CORS.
      - `allowedMethods` string[]: The methods (HTTP request verbs) that the origin domain may use for a CORS request.
      - `allowedHeaders` string[]: The request headers that the origin domain may specify on the CORS request.
      - `exposedHeaders` string[]: The response headers to expose to CORS clients.
      - `maxAgeInSeconds` integer: The number of seconds that the client/browser should cache a preflight response.
    - `reportsConnectionString` string: Connection string to write Accounts reports to.
  - `identity` ManagedServiceIdentity (unresolved $ref)

## Response `200`

Successful.

- AccountResource (unresolved $ref)

## Other responses

- `202`: RecommendationsService Account resource is being updated.
- `default`: Error response describing why the operation failed.

---

[API](https://skmtc.dev/azure/apis/recommendationsservice-microsoft-recommendationsservice-reco.md) - [All operations](https://skmtc.dev/azure/apis/recommendationsservice-microsoft-recommendationsservice-reco/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/recommendationsservice-microsoft-recommendationsservice-reco/revisions/5cc34cd11652?raw)
