---
title: "Update a sleep entry"
method: PUT
path: "/api/sleep/{id}"
---

# Update a sleep entry

`PUT /api/sleep/{id}`

## Request

- Base URL: `https://healthpartner.shrynshjn.com`
- URL: `https://healthpartner.shrynshjn.com/api/sleep/{id}`
- Auth: none declared

## Path parameters

- `id` string, required

## Request body

- SleepRequest
  - `startTime` string, date-time, required: ISO with timezone offset.
  - `endTime` string, date-time, required: ISO with timezone offset.
  - `duration` number, required: milliseconds
  - `source` string, required
  - `idempotencyKey` string
  - `media` string[]
  - `naturalText` string

## Response `200`

Updated

- UpdateResult
  - `message` string
  - `updatedAt` string, date-time

---

[API](https://skmtc.dev/shrynshjn/apis/health-partner-api.md) · [All operations](https://skmtc.dev/shrynshjn/apis/health-partner-api/llms.txt) · [OpenAPI document](https://skmtc.dev/shrynshjn/apis/health-partner-api/revisions/687e966e4267?raw)
