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

# SharedSessionRequest real-time messages type

> SharedSessionRequest type for PlayFab real-time messages AddEntityToSession and RemoveEntityFromSession, identifying a title_player_account by type and ID.

<Note>
  The REST and SignalR APIs documented here are more complex than the client SDKs. Consider using the [Lobby C++ SDK](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members) or [Matchmaking C++ SDK](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmatchmaking/pfmatchmaking_members) instead, unless those SDKs don't meet your needs.
</Note>

```json theme={null}
{
    "entityType": "title_player_account",
    "entityId": "6C6B908A2B5B9A4",
    "traceParent": "00-84678fd69ae13e41fce1333289bcf482-22d157fb94ea4827-01"
}
```

## Members

**`entityType`**   string

The [type of the
entity](/services/playfab/live-service-management/game-configuration/entities/available-built-in-entity-types#title_player_account)
to add to the session. Currently we only accept `title_player_account`.

Example: `title_player_account`

**`entityId`**   string

The [ID of the
entity](/services/playfab/live-service-management/game-configuration/entities/available-built-in-entity-types#title_player_account)
to add to the session.

Example: `6C6B908A2B5B9A4`

**`traceParent`**   string

A valid [W3C TraceContext TraceParent
Header](https://www.w3.org/TR/trace-context/#traceparent-header).

Example: `00-84678fd69ae13e41fce1333289bcf482-22d157fb94ea4827-01`

## See also

* Type [SharedSessionResponse](/services/playfab/multiplayer/real-time-messages/types/shared-session-response)
* Server method [AddEntityToSession](/services/playfab/multiplayer/real-time-messages/server-methods/add-entity-to-session)
* Server method
  [RemoveEntityFromSession](/services/playfab/multiplayer/real-time-messages/server-methods/remove-entity-from-session)
* [Real-time messages SignalR Hub](/services/playfab/multiplayer/real-time-messages/signalr-hub)
* [Real-time messages for Lobby and Matchmaking APIs](/services/playfab/multiplayer/real-time-messages/overview)


## Related topics

- [SharedSessionResponse real-time messages type](/services/playfab/multiplayer/real-time-messages/types/shared-session-response.md)
- [EndSessionRequest real-time messages type](/services/playfab/multiplayer/real-time-messages/types/end-session-request.md)
- [StartOrRecoverSessionRequest real-time messages type](/services/playfab/multiplayer/real-time-messages/types/start-or-recover-session-request.md)
- [EndSessionResponse real-time messages type](/services/playfab/multiplayer/real-time-messages/types/end-session-response.md)
- [StartOrRecoverSessionResponse real-time messages type](/services/playfab/multiplayer/real-time-messages/types/start-or-recover-session-response.md)
