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

# PFLobbyServerDataUpdate

> Request structure used by a game server to update the server-owned state of a client-owned PlayFab Multiplayer lobby, including properties and search data.

A request to make an update to the associated server state of a client-owned lobby.

## Syntax

```cpp theme={null}
struct PFLobbyServerDataUpdate {  
    const PFEntityKey* newServer;  
    uint32_t serverPropertyCount;  
    const char* const* serverPropertyKeys;  
    const char* const* serverPropertyValues;  
}  
```

### Members

**`newServer`**   const [PFEntityKey](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pfmultiplayer/pfentitykey_clientsdk)\*\
*may be nullptr*

An optional, new server to be associated with the client-owned lobby.

If specified, this entity must be a game\_server entity. <br /><br /> There can only be one server associated with a lobby at a time. Setting a new server here replaces the currently associated server in the lobby.

**`serverPropertyCount`**   uint32\_t

The number of server properties to update.

There might only be `PFLobbyMaxServerPropertyCount` concurrent properties at any given time. Therefore, at most, twice that many unique properties can be specified in this update if half of those properties are being deleted. <br /><br /> If the property limits are violated, the entire update operation fails.

**`serverPropertyKeys`**   const char\* const\*\
*array of size `serverPropertyCount`*

The keys of the server properties to update.

<br /><br /> Only the properties specified in this list of keys are updated. If the key doesn't exist yet, the property will be created. If the new property value is nullptr, the property is deleted. Any existing properties omitted from this list are left unmodified.

**`serverPropertyValues`**   const char\* const\*\
*array of size `serverPropertyCount`*

The values of the server properties to update.

<br /><br /> To delete a value, provide nullptr as its new value.

## Requirements

**Header:** PFLobby.h

## See also

[PFLobby members](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members)


## Related topics

- [PFLobbyServerPostUpdateAsServer](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/functions/pflobbyserverpostupdateasserver.md)
- [PFMultiplayer C/C++ API overview - PFLobby.h](/services/playfab/multiplayer/lobby/playfabmultiplayerreference-cpp/pflobby/pflobby_members.md)
- [LobbyServerDataUpdate method](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyServerDataUpdate/LobbyServerDataUpdate.md)
- [LobbyServerDataUpdate class](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyServerDataUpdate/overview.md)
- [LobbyServerDataUpdate.NewServer](/services/playfab/multiplayer/lobby/unity-multiplayer-api-reference/PlayFab.Multiplayer/LobbyServerDataUpdate/NewServer.md)
