---
title: "Leave party session"
method: PUT
path: "/v2/session/{sessionName}/leave"
tags: ["session"]
---

# Leave party session

`PUT /v2/session/{sessionName}/leave`

Removes you from a party session.

## Parameters

- **sessionName** - The unique session identifier (UUID format)

## Behavior

- Your member entry is removed from the session
- If you were the last member, the session is deleted
- Other members receive a notification of your departure

## Use Cases

- **Clean disconnection** - Properly leave a party before disconnecting
- **Session cleanup** - Remove yourself from old sessions

## Path parameters

- `sessionName` string, required

## Response `200`

Successfully left the party

- ApiResponse — Standard API response wrapper. All endpoints return responses in this format.
  - `content` unknown, required
  - `code` integer, required — HTTP status code from the upstream API. Common values: 200 (success), 400 (bad request), 401 (unauthorized), 404 (not found), 410 (deprecated/gone), 429 (rate limited), 500 (server error)

## Other responses

- `401` — Invalid or missing API key
- `404` — Resource not found
- `429` — Rate limit exceeded

---

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