> 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-biomarker-category.md).

# Update Biomarker Category

Use `updateBiomarkerCategory` to update an existing biomarker category by Id.

| Argument | Type   | Description                   |
| -------- | ------ | ----------------------------- |
| `id`     | ID!    | Id of Biomarker Category.     |
| `name`   | String | Name of Biomarker Category.   |
| `parent` | ID     | Parent Category Id.           |
| `order`  | Int    | Sets view order. Default = 0. |

### Available Fields

| Field Name          | Type              | Description                                                                             |
| ------------------- | ----------------- | --------------------------------------------------------------------------------------- |
| `success`           | Boolean!          | **True** if the biomarker category has been updated successfully. Otherwise, **False.** |
| `message`           | String!           | Description of the result.                                                              |
| `biomarkerCategory` | BiomarkerCategory | Biomarker category object .                                                             |

### Example

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

```graphql
mutation updateBiomarkerCategory {
  updateBiomarkerCategory(input: {
    id: "QmlvbWFya2VyQ2F0ZWdvcnk6MTE1",
    name: "Category Test update",
    order: 1
  }) 
  {
    success
    message
    errors { field messages }
    biomarkerCategory {name order id createdAt updatedAt}
  }
}

```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "updateBiomarkerCategory": {
      "success": true,
      "message": "Biomarker category saved",
      "errors": null,
      "biomarkerCategory": {
        "name": "Category Test update",
        "order": 1,
        "id": "QmlvbWFya2VyQ2F0ZWdvcnk6MTE2",
        "createdAt": "2023-03-31T22:24:37.119951+00:00",
        "updatedAt": "2023-03-31T22:24:37.119971+00:00"
      }
    }
  }
}
```

{% endtab %}
{% endtabs %}
