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

# PFStatisticsUpdateStatisticsAsync

> Update statistics on an entity profile. Depending on the statistic definition, this may result in entity being ranked on various leaderboards.

Update statistics on an entity profile. Depending on the statistic definition, this may result in entity being ranked on various leaderboards.

## Syntax

```cpp theme={null}
HRESULT PFStatisticsUpdateStatisticsAsync(  
    PFEntityHandle entityHandle,  
    const PFStatisticsUpdateStatisticsRequest* request,  
    XAsyncBlock* async  
)  
```

### Parameters

**`entityHandle`**   PFEntityHandle

PFEntityHandle to use for authentication.

**`request`**   [PFStatisticsUpdateStatisticsRequest\*](/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsupdatestatisticsrequest)

Populated request object.

**`async`**   XAsyncBlock\*<br />*Inout*

XAsyncBlock for the async operation.

### Return value

Type: HRESULT

Result code for this API operation.

## Remarks

This API is available on all platforms. See also StatisticDeleteStatisticsAsync. When the asynchronous task is complete, call [PFStatisticsUpdateStatisticsGetResultSize](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsupdatestatisticsgetresultsize) and [PFStatisticsUpdateStatisticsGetResult](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsupdatestatisticsgetresult) to get the result.

## Requirements

**Header:** PFStatistics.h

## See also

[PFStatistics members](/services/playfab/api-references/c/pfstatistics/pfstatistics_members)


## Related topics

- [PFStatisticsUpdateStatisticsGetResult](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsupdatestatisticsgetresult.md)
- [Services C API overview - PFStatistics.h](/services/playfab/api-references/c/pfstatistics/pfstatistics_members.md)
- [PFStatisticsUpdateStatisticDefinitionAsync](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsupdatestatisticdefinitionasync.md)
- [PFStatisticsDeleteStatisticsAsync](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsdeletestatisticsasync.md)
- [PFStatisticsStatisticUpdate](/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsstatisticupdate.md)
