question

Kalle Wik avatar image
Kalle Wik asked

Calling DeletePlayer from Postman fails with 'PlayFabId must be a hex-encoded number'

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.

Kalle Wik avatar image Kalle Wik commented ·

Set up Postman and most functions work.

However with DeletePlayer I am getting

"PlayFabId": [ "must be a hex-encoded number"] for every Player I test

I have tried:

1. Both the TitleID and Master Player ID

2. Multiple Players with different IDs

Also I allowed Server access to the APIs in Title Settings


Two questions:


1. How can I delete players successfully by API?
2. How can I delete ALL players successfully by API?

Thank you

0 Likes 0 ·

1 Answer

·
Xiao Zha avatar image
Xiao Zha answered

I can’t reproduce your issue, can you provide us your Postman screenshots of request body and error details to help further research.

>>1. How can I delete players successfully by API?

Usually, you can call DeletePlayer API to delete one player and set the PlayFabId as Master Player Id.

>>2. How can I delete ALL players successfully by API?

There is no API can be used to delete all players. But you can run a Scheduled Task manually that takes the action “Delete Player” on the segment of “All Players” to delete all players.

10 |1200

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

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.