---
title: "Set current session for a client"
method: POST
path: "/workspaces/{id}/current-session"
tags: ["workspaces"]
---

# Set current session for a client

`POST /workspaces/{id}/current-session`

## Path parameters

- `id` string, required

## Query parameters

- `client_id` string, required

## Request body

- ProtoCurrentSession
  - `session_id` string

## Response `200`

OK

## Other responses

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

---

[API](https://skmtc.dev/charmbracelet/apis/crush-api.md) · [All operations](https://skmtc.dev/charmbracelet/apis/crush-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/charmbracelet/crush-api/revisions/81bee9ef86c6/schema)
