---
title: "Set Session Pin"
method: PUT
path: "/sessions/{session_id}/pin"
---

# Set Session Pin

`PUT /sessions/{session_id}/pin`

## Request

- Base URL: `https://api.traversal.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.traversal.com/sessions/{session_id}/pin`
- Auth: none declared

Set the current user's pinned state for a session.

## Path parameters

- `session_id` string, uuid, required

## Request body

- SetSessionPinRequest: Request body for setting a session's pin state for the current user.
  - `pinned` boolean, required

## Response `200`

Successful Response

- PinSessionResponse: Response for the set-session-pin endpoint.
  - `session_id` string, required
  - `pinned` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/traversal/apis/traversal-api.md) - [All operations](https://skmtc.dev/traversal/apis/traversal-api/llms.txt) - [OpenAPI document](https://skmtc.dev/traversal/apis/traversal-api/revisions/31e1a8b7cf89?raw)
