question

Dale Strickler avatar image
Dale Strickler asked

Reset leaderboards via script

Is there a way to reset the leaderboards by scripts? We want to do it when we start certain campaigns to encourage new users by having a clean leaderboard for them to rank on. So we have the boards set to manual. But we have a lot of boards and doing it via the dashboard is time consuming. We would like to create a couple of live ops scripts that would reset all or some of the leaderboards when the script is run.

Leaderboards and Statistics
1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dale Strickler avatar image Dale Strickler commented ·

Scripts on are live ops dashboard no in-game, just to be clear.

0 Likes 0 ·

1 Answer

·
brendan avatar image
brendan answered

No, currently, you would need to use a script that you run locally, so that you can make use of the Admin API call (https://api.playfab.com/documentation/admin/method/IncrementPlayerStatisticVersion) to reset the leaderboards, if you want to have custom reset times.

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Dale Strickler avatar image Dale Strickler commented ·

Oh, yeah. I remember this now. Sorry about re-asking what I should have known. :-D

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.