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

# PFStatisticsStatisticUpdate

> Reference for the PFStatisticsStatisticUpdate struct in the PlayFab Services C API, describing a statistic's name, scores, version, and metadata.

PFStatisticsStatisticUpdate data model.

## Syntax

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

### Members

**`metadata`**   const char\*<br />*is null-terminated*

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

**`name`**   const char\*<br />*is null-terminated*

Name of the statistic, as originally configured.

**`scores`**   const char\* const\*<br />*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\*<br />*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](/services/playfab/api-references/c/pfstatisticstypes/pfstatisticstypes_members)


## Related topics

- [PFStatisticsUpdateStatisticsRequest](/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsupdatestatisticsrequest.md)
- [Services C API overview - PFStatisticsTypes.h](/services/playfab/api-references/c/pfstatisticstypes/pfstatisticstypes_members.md)
- [PFStatisticsUpdateStatisticsAsync](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsupdatestatisticsasync.md)
- [PFStatisticsUpdateStatisticsResponse](/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsupdatestatisticsresponse.md)
- [statistic_updated](/services/playfab/api-references/events/Statistics/statistic-updated.md)
