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

# 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](/services/playfab/api-references/c/pftypes/structs/pfstringdictionaryentry) const\*<br />*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](/services/playfab/api-references/c/pftypes/structs/pfentitykey-c) const\*<br />*may be nullptr*

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

**`statistics`**   [PFStatisticsStatisticUpdate](/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsstatisticupdate) const\*

Collection of statistics to update, maximum 50.

**`statisticsCount`**   uint32\_t

Count of statistics

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

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

## Requirements

**Header:** PFStatisticsTypes.h

## See also

[PFStatisticsTypes members](/services/playfab/api-references/c/pfstatisticstypes/pfstatisticstypes_members)


## Related topics

- [PFStatisticsUpdateStatisticsAsync](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsupdatestatisticsasync.md)
- [Services C API overview - PFStatisticsTypes.h](/services/playfab/api-references/c/pfstatisticstypes/pfstatisticstypes_members.md)
- [PFStatisticsUpdateStatisticDefinitionRequest](/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsupdatestatisticdefinitionrequest.md)
- [PFStatisticsUpdateStatisticDefinitionAsync](/services/playfab/api-references/c/pfstatistics/functions/pfstatisticsupdatestatisticdefinitionasync.md)
- [PFStatisticsStatisticUpdate](/services/playfab/api-references/c/pfstatisticstypes/structs/pfstatisticsstatisticupdate.md)
