<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [RecommendationsMutations](./x-components.recommendationsmutations.md) &gt; [updateRecommendation](./x-components.recommendationsmutations.updaterecommendation.md)

## RecommendationsMutations.updateRecommendation() method

Updates a recommendation with new fields.

**Signature:**

```typescript
updateRecommendation(recommendation: Partial<Result> & Pick<Result, 'id'>): void;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  recommendation | Partial&lt;Result&gt; &amp; Pick&lt;Result, 'id'&gt; | A recommendation containing at least an id and the properties to modify. |

**Returns:**

void

