---
title: "Record that the caller has looked at this sheet. The web calls it when the user leaves a stay; an empty body means \"now\". Idempotent upsert, never moves backwards. Any authenticated user — reading the board is Model A, and the marker is theirs alone."
method: PUT
path: "/hospitalstays/{id}/last-seen"
tags: ["HospitalStays"]
---

# Record that the caller has looked at this sheet. The web calls it when the user leaves a stay; an empty body means "now". Idempotent upsert, never moves backwards. Any authenticated user — reading the board is Model A, and the marker is theirs alone.

`PUT /hospitalstays/{id}/last-seen`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/hospitalstays/{id}/last-seen`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/hospitalstays/:id/last-seen/put.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` string, required

## Request body

- MarkHospitalStaySeenRequest: Body of `PUT /hospitalstays/{id}/last-seen`. Empty body means "now".
  - `lastSeenAt` string, date-time, nullable: Optional client timestamp; the server clamps it to its own clock.

## Response `200`

OK

- HospitalStayLastSeenDto: The caller's marker on a stay after a PUT.
  - `stayId` string
  - `userId` string
  - `lastSeenAt` string, date-time

## Other responses

- `400`: Bad Request
- `404`: Not Found

## Changes

- **2026-09-11** `503cd0546309`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/changes/hospitalstays/:id/last-seen/put.md)

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
