---
title: "PUT /api/v1/habits/{habitId}/entries/{date}"
method: PUT
path: "/api/v1/habits/{habitId}/entries/{date}"
tags: ["PublicHabits"]
---

# PUT /api/v1/habits/{habitId}/entries/{date}

`PUT /api/v1/habits/{habitId}/entries/{date}`

## Request

- Base URL: `https://api.habitpocket.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api.habitpocket.io/api/v1/habits/{habitId}/entries/{date}`
- Auth: API key in header `X-API-KEY`

## Path parameters

- `habitId` string, uuid, required
- `date` string, date, required

## Request body

- SetEntryRequest
  - `status` string, nullable
  - `value` number, double, nullable
  - `time` string, nullable
  - `optionIds` string[], nullable

## Response `200`

OK

- PublicHabitEntryModel
  - `habitId` string, uuid
  - `date` string, date
  - `status` string, nullable
  - `value` number, double, nullable
  - `time` string, nullable
  - `optionIds` string[], nullable

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `404`: Not Found

---

[API](https://skmtc.dev/habitpocket/apis/metricspocket-public-api.md) - [All operations](https://skmtc.dev/habitpocket/apis/metricspocket-public-api/llms.txt) - [OpenAPI document](https://skmtc.dev/habitpocket/apis/metricspocket-public-api/revisions/28a2063c7bbe?raw)
