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

# PFTitleDataManagementServerSetTitleDataAsync

> Server API to update the key-value store of custom title settings visible to clients, callable from trusted game servers to change title-scoped configuration.

Updates the key-value store of custom title settings

## Syntax

```cpp theme={null}
HRESULT PFTitleDataManagementServerSetTitleDataAsync(  
    PFEntityHandle titleEntityHandle,  
    const PFTitleDataManagementSetTitleDataRequest* request,  
    XAsyncBlock* async  
)  
```

### Parameters

**`titleEntityHandle`**   PFEntityHandle

PFEntityHandle for a title Entity obtained using PFAuthenticationGetEntityWithSecretKeyAsync.

**`request`**   [PFTitleDataManagementSetTitleDataRequest\*](/services/playfab/api-references/c/pftitledatamanagementtypes/structs/pftitledatamanagementsettitledatarequest)

Populated request object.

**`async`**   XAsyncBlock\*\
**Inout**

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on Win32, Linux, and macOS. This API is designed to store title specific values which can be read, but not written to, by the client. For example, a developer could choose to store values which modify the user experience, such as enemy spawn rates, weapon strengths, movement speeds, etc. This allows a developer to update the title without the need to create, test, and ship a new build. This operation is additive. If a Key does not exist in the current dataset, it will be added with the specified Value. If it already exists, the Value for that key will be overwritten with the new Value. See also ServerGetTitleDataAsync. Call XAsyncGetStatus to get the status of the operation. If the service call is unsuccessful, the async result will be E\_PF\_DATA\_LENGTH\_EXCEEDED, E\_PF\_TOO\_MANY\_KEYS or any of the global PlayFab Service errors. See doc page "Handling PlayFab Errors" for more details on error handling.

## Requirements

**Header:** PFTitleDataManagement.h

## See also

[PFTitleDataManagement members](/services/playfab/api-references/c/pftitledatamanagement/pftitledatamanagement_members)


## Related topics

- [Services C API overview - PFTitleDataManagement.h](/services/playfab/api-references/c/pftitledatamanagement/pftitledatamanagement_members.md)
- [PFTitleDataManagementServerSetTitleInternalDataAsync](/services/playfab/api-references/c/pftitledatamanagement/functions/pftitledatamanagementserversettitleinternaldataasync.md)
- [PFTitleDataManagementServerSetPublisherDataAsync](/services/playfab/api-references/c/pftitledatamanagement/functions/pftitledatamanagementserversetpublisherdataasync.md)
- [PFTitleDataManagementServerGetTitleDataAsync](/services/playfab/api-references/c/pftitledatamanagement/functions/pftitledatamanagementservergettitledataasync.md)
- [PFTitleDataManagementServerGetTitleInternalDataAsync](/services/playfab/api-references/c/pftitledatamanagement/functions/pftitledatamanagementservergettitleinternaldataasync.md)
