Skip to main content
This topic provides example code showing how to write title-managed stats.
The stored stat value reflects the value most recently written through these APIs. However, the global leaderboard for that stat retains only the highest recorded value per player, so writing a lower value doesn’t lower the player’s leaderboard position. For details and alternatives, see the title-managed Stats overview and the XblLeaderboardQuery reference.

Updating only the specified title-managed stats

You can send specified stats that you want to update, by calling XblTitleManagedStatsUpdateStatsAsync, which selectively updates the calling user’s stats. A specified stat will only be overwritten if it already exists. Any stats that aren’t specified in the call to XblTitleManagedStatsUpdateStatsAsync stay unchanged. C API
Reference

Writing all the stats you want to keep, and deleting the rest

To write only the title-managed stats that you want to keep, and delete the rest, call XblTitleManagedStatsWriteAsync with all the stats you want to write. Any stats that are not included in the call will be removed. This call replaces the last stats document on the service with a new stats document that contains only the values you sent. C API
Reference
Last modified on August 20, 2026