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

# Set Session Pin

`PUT /sessions/{session_id}/pin`

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

## Path parameters

- `session_id` string, 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.net/traversal/apis/fastapi.md) · [All operations](https://skmtc.net/traversal/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/traversal/fastapi/revisions/2134ebffd1ef/schema)
