> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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](https://docs.xbox.com/reference/live/xsapi-c/types_c/handles/xblcontexthandle.md)

XBOX live context for the local user.

*statistics*   \_In\_\
Type: [XblTitleManagedStatistic\*](https://docs.xbox.com/reference/live/xsapi-c/title_managed_statistics_c/structs/xbltitlemanagedstatistic.md)

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](https://docs.xbox.com/reference/system/xasync/functions/xasyncgetstatus.md) 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.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[title\_managed\_statistics\_c](https://docs.xbox.com/reference/live/xsapi-c/title_managed_statistics_c/title_managed_statistics_c_members.md)


## Related topics

- [Writing title-managed stats](https://docs.xbox.com/services/xbox-services/player-data/stats-leaderboards/title-managed/how-to/live-writing-tm-stats.md)
- [title_managed_statistics_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/title_managed_statistics_c/title_managed_statistics_c_members.md)
- [XblTitleManagedStatsWriteAsync](https://docs.xbox.com/reference/live/xsapi-c/title_managed_statistics_c/functions/xbltitlemanagedstatswriteasync.md)
- [XblTitleManagedStatsDeleteStatsAsync](https://docs.xbox.com/reference/live/xsapi-c/title_managed_statistics_c/functions/xbltitlemanagedstatsdeletestatsasync.md)
- [XblTitleManagedStatType](https://docs.xbox.com/reference/live/xsapi-c/title_managed_statistics_c/enums/xbltitlemanagedstattype.md)
