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

# PFStatisticsStatisticUpdate

> PFStatisticsStatisticUpdate data model.

PFStatisticsStatisticUpdate data model.

## Syntax

```cpp theme={null}
typedef struct PFStatisticsStatisticUpdate {  
    PFEntityKey const* aggregationTargetEntityKeys;  
    uint32_t aggregationTargetEntityKeysCount;  
    const char* metadata;  
    const char* name;  
    const char* const* scores;  
    uint32_t scoresCount;  
    uint32_t const* version;  
} PFStatisticsStatisticUpdate;  
```

### Members

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

(Optional) A list of entities to which the statistic update must be aggregated to, in addition to the entity being updated. For example, for Group stats where the stat value is aggregated based on the group members, this would refer to the Group entity. For a community stat that's aggregated at the Title, it is not required to populate this property (Title is the default).

**`aggregationTargetEntityKeysCount`**   uint32\_t

Count of aggregationTargetEntityKeys

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

(Optional) Arbitrary metadata to store along side the statistic, will be returned by all Leaderboard APIs.

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

Name of the statistic, as originally configured.

**`scores`**   const char\* const\*\
*may be nullptr*

(Optional) Statistic scores for the entity. This will be used in accordance with the aggregation method configured for the statistics.The maximum value allowed for each individual score is 9223372036854775807. The minimum value for each individual score is -9223372036854775807The values are formatted as strings to avoid interop issues with client libraries unable to handle 64bit integers.

**`scoresCount`**   uint32\_t

Count of scores

**`version`**   uint32\_t const\*\
*may be nullptr*

(Optional) Optional field to indicate the version of the statistic to set. When empty defaults to the statistic's current version.

## Requirements

**Header:** PFStatisticsTypes.h

## See also

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


## Related topics

- [PFStatisticsUpdateStatisticsRequest](https://docs.xbox.com/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsupdatestatisticsrequest.md)
- [Services C API overview - PFStatisticsTypes.h](https://docs.xbox.com/services/playfab/api-references/c/pfstatisticstypes/pfstatisticstypes_members.md)
- [PlayFab Services C/C++ SDK Release Notes](https://docs.xbox.com/services/playfab/release-notes/playfab-c/index.md)
- [Update Statistics](https://docs.xbox.com/api-reference/statistics/update-statistics.md)
- [PFStatisticsUpdateStatisticsAsync](https://docs.xbox.com/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsupdatestatisticsasync.md)
