---
title: "Correct an activity"
method: PATCH
path: "/activities/{id}"
tags: ["Activities"]
---

# Correct an activity

`PATCH /activities/{id}`

## Request

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

## Path parameters

- `id` string, required: Opaque identifier.

## Headers

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

## Request body

- object
  - `activityType` string
  - `name` string, nullable
  - `startTime` string, date-time: An instant: ISO-8601 with offset, e.g. 2026-09-13T06:30:00Z.
  - `durationS` integer
  - `distanceM` number, nullable
  - `elevationGainM` number, nullable
  - `avgHr` integer, nullable
  - `maxHr` integer, nullable
  - `avgPowerW` integer, nullable
  - `sessionRpe` number, nullable
  - `notes` 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)
