> For the complete documentation index, see [llms.txt](https://docs.suggestic.com/graphql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.suggestic.com/graphql/query/mutations/lab-tests/update-recommended-article.md).

# Update Recommended Article

Use `updateArticleRecommended` to update the recommended article.

## Required Arguments

| Argument             | Type                 | Description             |
| -------------------- | -------------------- | ----------------------- |
| `articleRecommended` | ID!                  | Recommended Article Id. |
| `articleId`          | ID!                  | Article Id.             |
| `biomarkerId`        | ID!                  | Biomarker Id.           |
| `range`              | BiomarkerRangeInput! | Biomarker Range Input.  |
| `range.max`          | Float!               | Smallest defined value. |
| `range.min`          | Float!               | Largest defined value.  |

## Available Fields

| Field                | Type               | Description                                                      |
| -------------------- | ------------------ | ---------------------------------------------------------------- |
| `success`            | String             | Success if Recommended Supplement created succesfully.           |
| `message`            | String             | Description of the result. Either if the recipe was added or not |
| `articleRecommended` | ArticleRecommended | Recommended Article object.                                      |

## Example

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

```graphql
mutation updateArticleRecommended {
    updateArticleRecommended(input: {
      id: "QXJ0aWNsZVJlY29tbWVuZGVkOjI=",
      range: { max: 120, min: 50 }
    }) {
        success message errors { field messages }
        articleRecommended {
            id article { id title } biomarker { id name }
        }
    }
}
```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "updateArticleRecommended": {
      "success": true,
      "message": "Article recommended saved",
      "errors": null,
      "articleRecommended": {
        "id": "QXJ0aWNsZVJlY29tbWVuZGVkOjI=",
        "valueMax": 120,
        "valueMin": 50,
        "article": {
          "id": "Q29udGVudExpYnJhcnk6NzAwMThkNjYtZDMyMC00MzIyLWFlMDktYTU5N2Q5YjdkNGU1",
          "title": "My content library"
        },
        "biomarker": {
          "id": "QmlvbWFya2VyOjE=",
          "name": "Diabetes Risk Index"
        }
      }
    }
  }
}
}
```

{% endtab %}
{% endtabs %}
