> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# /handles/{handleId}/session

> /handles/{handleId}/session

# /handles/{handleId}/session

使用控制代碼取值，支援工作階段的 PUT 和 GET 作業。

> **注意：**\
> 此 URI 由 2015 多人遊戲使用，僅適用於該多人遊戲版本及更新版本。其適用於範本合約 104/105 或更新版本。

> **注意：**\
> 此 URI 目前僅供 XBOX One 主機和使用服務識別碼的伺服器從外部存取。

<a id="ID4ES" />

## 網域

sessiondirectory.xboxlive.com

<a id="ID4EX" />

## URI 參數

\| 參數| 類型| 描述|
\| --- | --- | --- | --- | --- |
\| handleId| GUID| 工作階段控制代碼的唯一識別碼。|

<a id="ID4ESB" />

## 有效的方法

[GET (/handles/{handleId}/session)](/zh-TW/reference/live/rest/uri/sessiondirectory/uri-handleshandleidsessionget)

  取得指定控制代碼識別碼的工作階段物件。

[PUT (/handles/{handle-id}/session)](/zh-TW/reference/live/rest/uri/sessiondirectory/uri-handleshandleidsessionput)

  透過控制代碼取值來建立或更新工作階段。

<a id="ID4E6B" />

## 另請參閱

<a id="ID4EBC" />

##### 上層

[工作階段目錄 URI](/zh-TW/reference/live/rest/uri/sessiondirectory/atoc-reference-sessiondirectory)


## Related topics

- [XblMultiplayerGetSessionByHandleAsync](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayergetsessionbyhandleasync.md)
- [XblMultiplayerWriteSessionByHandleAsync](/reference/live/xsapi-c/multiplayer_c/functions/xblmultiplayerwritesessionbyhandleasync.md)
