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

# PFStatisticsUpdateStatisticsRequest

> Reference for the PFStatisticsUpdateStatisticsRequest struct in the PlayFab Services C API, specifying the entity and statistic values to write.

PFStatisticsUpdateStatisticsRequest data model.

## Syntax

```cpp theme={null}
typedef struct PFStatisticsUpdateStatisticsRequest {  
    PFStringDictionaryEntry const* customTags;  
    uint32_t customTagsCount;  
    PFEntityKey const* entity;  
    PFStatisticsStatisticUpdate const* statistics;  
    uint32_t statisticsCount;  
    const char* transactionId;  
} PFStatisticsUpdateStatisticsRequest;  
```

### Members

**`customTags`**   [PFStringDictionaryEntry](https://docs.xbox.com/services/playfab/api-references/c/pftypes/structs/pfstringdictionaryentry.md) const\*\
*may be nullptr*

(Optional) The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).

**`customTagsCount`**   uint32\_t

Count of customTags

**`entity`**   [PFEntityKey](https://docs.xbox.com/services/playfab/api-references/c/pftypes/structs/pfentitykey-c.md) const\*\
*may be nullptr*

(Optional) The optional entity to perform this action on. Defaults to the currently logged in entity.

**`statistics`**   [PFStatisticsStatisticUpdate](https://docs.xbox.com/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsstatisticupdate.md) const\*

Collection of statistics to update, maximum 50.

**`statisticsCount`**   uint32\_t

Count of statistics

**`transactionId`**   const char\*\
*is null-terminated*

(Optional) Optional transactionId of this update which can be used to ensure idempotence.

## Requirements

**Header:** PFStatisticsTypes.h

## See also

[PFStatisticsTypes members](https://docs.xbox.com/services/playfab/api-references/c/pfstatisticstypes/pfstatisticstypes_members.md)


## Related topics

- [PFStatisticsUpdateStatisticsAsync](https://docs.xbox.com/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsupdatestatisticsasync.md)
- [Services C API overview - PFStatisticsTypes.h](https://docs.xbox.com/services/playfab/api-references/c/pfstatisticstypes/pfstatisticstypes_members.md)
- [Update Statistics](https://docs.xbox.com/api-reference/statistics/update-statistics.md)
- [PFStatisticsUpdateStatisticDefinitionRequest](https://docs.xbox.com/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsupdatestatisticdefinitionrequest.md)
- [Update Player Statistics](https://docs.xbox.com/api-reference/player-data-management/update-player-statistics.md)
