> ## 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.

# MultiplayerSessionRequest (JSON)

> MultiplayerSessionRequest (JSON)

# MultiplayerSessionRequest (JSON)

**MultiplayerSession** オブジェクトへの操作に渡される JSON リクエスト オブジェクト。

MultiplayerSessionRequest JSON オブジェクトの仕様は次のとおりです。

| メンバー | 型 | 説明 |
| - | - | - |
| constants | object | セッション テンプレートとマージされ、セッションの定数を生成する読み取り専用の設定。 |
| properties | object | セッション プロパティにマージされる変更内容。 |
| members.me | object | 定数とプロパティで、最上位の同名要素と同様に動作します。すべての PUT メソッドはユーザーがセッションのメンバーであることを要求し、必要であればユーザーを追加します。"me" を null として指定すると、リクエストを行っているメンバーがセッションから削除されます。 |
| members | object | セッションに追加するユーザーを表す他のオブジェクト。ゼロベースのインデックスをキーとします。リクエスト内のメンバー数は、セッションに既にメンバーが含まれていても常に 0 から始まります。メンバーはリクエストに現れる順序でセッションに追加されます。メンバーのプロパティは、当該メンバー本人によってのみ設定できます。 |
| servers | object | セッションに関連付けられたサーバー参加者セットへの更新と追加を示す値。サーバーを null として指定すると、そのサーバー エントリはセッションから削除されます。 |

## リクエスト構造

```json theme={null}
{
  "constants": { /* Property Bag */ },
  "properties": { /* Property Bag */ },
  "members": {
    // Requires a service principal. Existing members can be deleted by index.
    // Not available on large sessions.
    "5": null,

    // Reservation requests must start with zero. New users will get added in order to the end of the session's member list.
    // Large sessions don't support reservations.
    "reserve_0": {
      "constants": { /* Property Bag */ }
    },
    "reserve_1": {
      "constants": { /* Property Bag */ }
    },

    // Requires a user principal with a xuid claim. Can be 'null' to remove myself from the session.
    "me": {
      "constants": { /* Property Bag */ },
      "properties": { /* Property Bag */ },
    }
  },

  // Requires a server principal.
  "servers": {
    // Can be any name. The value can be 'null' to remove the server from the session.
    "name": {
      "constants": {  /* Property Bag */ },
      "properties": {  /* Property Bag */ }
    }
  }
}
```

## 関連項目

##### 親

[JavaScript Object Notation (JSON) オブジェクト リファレンス](/ja-jp/reference/live/rest/json/atoc-xboxlivews-reference-json)

##### リファレンス

[MultiplayerSession (JSON)](/ja-jp/reference/live/rest/json/json-multiplayersession)

[PUT (/serviceconfigs/{scid}/sessiontemplates/{sessionTemplateName}/sessions/{sessionName})](/ja-jp/reference/live/rest/uri/sessiondirectory/uri-serviceconfigsscidsessiontemplatessessiontemplatenamesessionssessionnameput)


## Related topics

- [Multiplayer FAQ and troubleshooting](/services/xbox-services/multiplayer/mpsd/concepts/live-multiplayer-2015-faq.md)
- [Perguntas frequentes e solução de problemas de multiplayer](/pt-BR/services/xbox-services/multiplayer/mpsd/concepts/live-multiplayer-2015-faq.md)
- [FAQ et résolution des problèmes multijoueurs](/fr-CA/services/xbox-services/multiplayer/mpsd/concepts/live-multiplayer-2015-faq.md)
- [Multiplayer Session Directory overview](/services/xbox-services/multiplayer/mpsd/live-mpsd-overview.md)
- [Preguntas frecuentes y solución de problemas de multijugador](/es/services/xbox-services/multiplayer/mpsd/concepts/live-multiplayer-2015-faq.md)
