PUT (/serviceconfigs//sessiontemplates//sessions/)
Creates, updates, or joins a session.Important:
This URI method requires a header element of X-Xbl-Contract-Version: 104/105 or later on every request.
Remarks
This HTTP/REST method creates, joins, or updates a session, depending on what subset of the same JSON request body template is sent. On success, it returns a MultiplayerSession object containing the response returned from the server. The attributes in it might be different from the attributes in the passed-in MultiplayerSession object. This method can be wrapped by Microsoft.Xbox.Services.Multiplayer.MultiplayerService.WriteSessionAsync. Session creation and update operations use PUT with an application/json body that represents the changes to apply. The operations are idempotent, that is, multiple applications of the same changes have no additional effect. The JSON request body mirrors the session data structure. All fields and sub-fields are optional. The wire format for the PUT method’s session creation or joining mode is shown below.Note:
Take care using this pattern. Upates are applied blindly, no matter the current state of the session.
