session

Leave party session

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
put/v2/session/{sessionName}/leave

Path parameters

sessionNamestring required

Response

Successfully left the party

{"stackTrail":"components:schemas:ApiResponse:properties:content","oasType":"schema","type":"unknown","description":"The response payload from the upstream Xbox/Microsoft API. The structure varies by endpoint - can be an object, array, or string."}
codeinteger 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)

Example response

{
  "code": 200
}

Changes