---
title: "Remember the view the caller is leaving this table on"
method: PATCH
path: "/tables/{table_id}/last-view/"
tags: ["table-user-prefs"]
---

# Remember the view the caller is leaving this table on

`PATCH /tables/{table_id}/last-view/`

## Request

- Base URL: `https://api.getoneprofile.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.getoneprofile.ai/tables/{table_id}/last-view/`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Set the CALLING USER's own last view of this table: the query string of the table page's address (view, sort, filter, a view's hidden columns), or null to forget it. Per person, and never written into a saved view, so a running sequence that reads a view is never changed by it.

## Path parameters

- `table_id` string, uuid, required

## Request body

- TableLastViewUpdateSchema: Request body for keeping, or forgetting, the view a person is leaving a table on.
  - `address` string, nullable, required: The table page's query string (view, sort, filter, a view's hidden columns) with no leading '?'; null when they left it as it opens for anyone. Null forgets it.

## Response `200`

Successful Response

- TableLastViewSchema: The view one person last left one table on, as its address's query string.
  - `address` string, nullable, required: The table page's query string (view, sort, filter, a view's hidden columns) with no leading '?'; null when they left it as it opens for anyone.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Table not found
- `422`: Invalid request made to the API.
- `500`: Internal server error.
- `502`: Bad gateway error.
- `503`: Service unavailable.

---

[API](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile.md) · [All operations](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/llms.txt) · [OpenAPI document](https://skmtc.dev/getoneprofile/apis/api-reference-oneprofile/revisions/4a6bd71e3f02?raw)
