---
title: "Correct a draw"
method: PUT
path: "/labs/draws/{id}"
tags: ["Lab results"]
---

# Correct a draw

`PUT /labs/draws/{id}`

## Request

- Base URL: `https://bodylab.lol/api/v1`
- URL: `https://bodylab.lol/api/v1/labs/draws/{id}`
- Auth: HTTP bearer

Replaces the draw's context and all of its results at once.

## Path parameters

- `id` string, required: Opaque identifier.

## Headers

- `X-Client-Platform` string
- `X-Client-Version` string

## Request body

- object
  - `localDate` string, date, required: A day on the athlete's own calendar: YYYY-MM-DD, no time zone.
  - `collectedTime` string, nullable
  - `labName` string, nullable
  - `fastingHours` number, nullable
  - `recentIllness` boolean, nullable
  - `ironSupplement10d` boolean, nullable
  - `biotin` boolean, nullable
  - `creatine` boolean, nullable
  - `hormoneMedication` boolean, nullable
  - `menstruating` boolean, nullable
  - `cycleDay` integer, nullable
  - `altitudeM` number, nullable
  - `results` object[], required
    - `marker` string, required
    - `name` string, nullable
    - `value` number, required
    - `comparator` '<' | '<=' | '>' | '>=', nullable
    - `unit` string, required
    - `method` string, nullable
    - `assay` string, nullable
    - `rangeLow` number, nullable
    - `rangeHigh` number, nullable
    - `rangeText` string, nullable
    - `labFlag` string, nullable

## Response `204`

No content.

## Other responses

- `401`: Error: UNAUTHORIZED.
- `404`: Error: NOT_FOUND.

---

[API](https://skmtc.dev/bodylab/apis/body-lab-api.md) · [All operations](https://skmtc.dev/bodylab/apis/body-lab-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bodylab/apis/body-lab-api/revisions/544c201eaf88?raw)
