# Update Serving Number

Use `updateShoppingListRecipeServings` to update the recipe number of servings

| Arguments          | Type     | Description          |
| ------------------ | -------- | -------------------- |
| `recipeId`         | **`ID`** | **ID** of the recipe |
| `numberOfServings` | **Int**  | Servings quantity    |

### Example

Update the recipe number of servings to 2.

{% tabs %}
{% tab title="Mutation" %}

```graphql
mutation {
updateShoppingListRecipeServings(
   recipeId: "UmVjaXBlOjQyOWM5N2M5LTMyN2ItNDFlNS05MjdlLWI5ZWU3YTJjZWRlYg==",
   numberOfServings: 2) {
    success
}
  }
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "updateShoppingListRecipeServings": {
      "success": true
    }
  }
}
```

{% endtab %}
{% endtabs %}

#### UI/UX example

In the same way, we have code examples, this is an implementation example in which see results of the API execution in the Suggestic App.&#x20;

Login to the App, tap on the **Meal Plan** option, and tap on the <img src="https://920729701-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LwqSnBDpAb6mFZYLsuB%2F-MkJ0j98q9gdDacGYf7u%2F-MkJ7tzZGCrCk6vFSuKk%2Fimage.png?alt=media&#x26;token=1c74db95-97ca-4909-a816-d175e26565cd" alt="" data-size="line"> icon to access the Shopping List, Tap on **By Recipe** tab and see that the servings number has been updated to 2:

![](https://920729701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LwqSnBDpAb6mFZYLsuB%2Fuploads%2FWOY5NvQ4ppqhmccCH6q6%2FUpdateSHPServings.gif?alt=media\&token=3fca7f1a-75f4-4142-bf1e-f6f6634d8531)
