> 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/user-profile/legacy-user-mutations/biomarkers.md).

# Legacy | User's Biomarkers

Mutation used to set the user's biomarker data.

{% hint style="danger" %}
**CAUTION: Legacy Endpoint!**\
Please refer to the [`Custom Attributes`](/graphql/query/mutations/user-profile/custom-attributes.md) documentation for a new and improved way of storing biomarkers.
{% endhint %}

### Create Profile Biomarkers

Use the `createProfileBiomarkers` mutation to set biomarker data on the user's profile.

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

```graphql
mutation {
  createProfileBiomarkers(
    hba1c: 3.0
    totalCholesterol: 200
    cholesterolLdl: 200
    vitaminD: 200
    vitaminB12: 100
    cortisol: 20
    ferritin: 200
  ) {
    success
  }
}
```

{% endtab %}

{% tab title="Response" %}

```javascript
{
  "data": {
    "createProfileBiomarkers": {
      "success": true
    }
  }
}
```

{% endtab %}
{% endtabs %}

### Update Profile Biomarkers

Use the `updateProfileBiomarkers` mutation to update biomarker data on the user's profile.

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

```graphql
mutation {
  updateProfileBiomarkers(
    hba1c: 3.0
    totalCholesterol: 200
    cholesterolLdl: 200
    vitaminD: 200
    vitaminB12: 100
    cortisol: 20
    ferritin: 200
  ) {
    success
  }
}
```

{% endtab %}

{% tab title="Response" %}

```javascript
{
  "data": {
    "updateProfileBiomarkers": {
      "success": true
    }
  }
}
```

{% endtab %}
{% endtabs %}

Use the [MyProfile](/graphql/query/queries/users/my-profile.md) query to obtain biomarker and other user profile data.
