> For the complete documentation index, see [llms.txt](https://docs.suggestic.com/telewellness-portal/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/telewellness-portal/api-reference/lab-test-reports/update-lab-test-report.md).

# Update Lab Test Report

Use the `updateLabTestReport` to update a lab test report assigned to a member.

### Available Arguments

<table data-header-hidden><thead><tr><th>Argument</th><th width="150" align="center">Is required?</th><th align="center">Type</th><th>Description</th></tr></thead><tbody><tr><td><strong>Argument Name</strong></td><td align="center"><strong>Is required?</strong></td><td align="center"><strong>Type</strong></td><td><strong>Description</strong></td></tr><tr><td><code>id</code></td><td align="center">Yes</td><td align="center">ID</td><td>Unique ID of the lab test. Execute the <a href="https://docs.suggestic.com/coaching-portal/api-references/lab-test-reports/lab-test-report-list"><code>labTestReports</code></a> query to get the id of a lab test report</td></tr><tr><td><code>testName</code></td><td align="center">No</td><td align="center">String</td><td>Test report name</td></tr><tr><td><code>testDate</code></td><td align="center">No</td><td align="center">DateTime</td><td>Date and time of the report </td></tr><tr><td><code>labName</code></td><td align="center">No</td><td align="center">String</td><td>Laboratory name</td></tr><tr><td><code>reportPdf</code></td><td align="center">No</td><td align="center">Upload</td><td>URL of the lab test report </td></tr></tbody></table>

## Available Fields

The following fields will be displayed in the response:

| **Field Name** | **Type** |                                                                               **Description**                                                                               |
| :------------: | :------: | :-------------------------------------------------------------------------------------------------------------------------------------------------------------------------: |
|    `success`   |  Boolean |                                             **True** if the lab test report has been updated successfully. Otherwise, **Flase**                                             |
|    `message`   |  String  |                                                                          Description of the result                                                                          |
|    `report`    |  Object  | Object that returns the list of [lab test report fields](https://docs.suggestic.com/coaching-portal/api-references/lab-test-reports/lab-test-report-list#available-fields). |

## Example

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

```graphql
mutation {
  updateLabTestReport(
    id: "TGFiVGVzdFJlcG9ydDo3MA=="
    testName: "Blood Test"
    labName: "Cleveland Lab"
    title: "Lab Report"
    testDate: "2022-02-01T05:00:00+00:00"
  ) {
    success
    message
    report {
      id
      testName
      reportPdf
      title
      testDate
    }
  }
}

```

{% endtab %}

{% tab title="Response" %}

```graphql
{
  "data": {
    "updateLabTestReport": {
      "success": true,
      "message": "Lab test report updated",
      "report": {
        "id": "TGFiVGVzdFJlcG9ydDo3MA==",
        "testName": "Blood Test",
        "reportPdf": "lab-test/5ed99232-ca13-4a65-92b2-fc098f829e04/biEd0KdheG7A.pdf",
        "title": "Lab Report",
        "testDate": "2022-02-01T05:00:00+00:00"
      }
    }
  }
}
```

{% endtab %}
{% endtabs %}
