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

# XblTitleManagedStatsUpdateStatsAsync

> XblTitleManagedStatsUpdateStatsAsync

# XblTitleManagedStatsUpdateStatsAsync

Partially update the calling user's stats. Stats will only be overwritten if they already exist (any stats not referenced will remain unchanged).

## Syntax

```cpp theme={null}
HRESULT XblTitleManagedStatsUpdateStatsAsync(  
         XblContextHandle xblContextHandle,  
         const XblTitleManagedStatistic* statistics,  
         size_t statisticsCount,  
         XAsyncBlock* async  
)  
```

### Parameters

*xblContextHandle*   \_In\_\
Type: [XblContextHandle](/reference/live/xsapi-c/types_c/handles/xblcontexthandle)

XBOX live context for the local user.

*statistics*   \_In\_\
Type: [XblTitleManagedStatistic\*](/reference/live/xsapi-c/title_managed_statistics_c/structs/xbltitlemanagedstatistic)

A list of XblTitleManagedStatistic to submit.

*statisticsCount*   \_In\_\
Type: size\_t

Number of items in the statistics array.

*async*   \_In\_\
Type: XAsyncBlock\*

Used for async call.

### Return value

Type: HRESULT

HRESULT return code for this API operation.

## Remarks

Note that stat names are case insensitive. To get the result, call [XAsyncGetStatus](/reference/system/xasync/functions/xasyncgetstatus) inside the AsyncBlock callback or after the AsyncBlock is complete. If the call fails for any reason, it is the responsibility of the game to re-submit the request.

## Requirements

**Header:** title\_managed\_statistics\_c.h

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

[title\_managed\_statistics\_c](/reference/live/xsapi-c/title_managed_statistics_c/title_managed_statistics_c_members)


## Related topics

- [Writing title-managed stats](/services/xbox-services/player-data/stats-leaderboards/title-managed/how-to/live-writing-tm-stats.md)
- [XblTitleManagedStatsWriteAsync](/reference/live/xsapi-c/title_managed_statistics_c/functions/xbltitlemanagedstatswriteasync.md)
- [XblTitleManagedStatsDeleteStatsAsync](/reference/live/xsapi-c/title_managed_statistics_c/functions/xbltitlemanagedstatsdeletestatsasync.md)
- [XblTitleManagedStatType](/reference/live/xsapi-c/title_managed_statistics_c/enums/xbltitlemanagedstattype.md)
- [Event-based Stats VS. title-managed Stats](/services/xbox-services/player-data/stats-leaderboards/live-stats-eb-vs-tm.md)
