question

xigmasuji avatar image
xigmasuji asked

User Not Found error upon using UpdateAvatarUrl

I have been using UpdateAvatarUrl to updat ethe Avatar of the player but it returns User Not Found, upon using the context.CallerEntityProfile.Entity.Id as PlayFabId. Have I done something wrong ? Is it not the playfab ID ? If not what is a PlayFab ID ? or kindly let me know what I am doing wrong.

Player Dataapis
10 |1200

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

1 Answer

·
Neils Shi avatar image
Neils Shi answered

The “context.CallerEntityProfile.Entity.Id” represents the player's title_player_account id, but the API UpdateAvatarUrl needs a PlayFabId (master_player_account id), you should use “context.CallerEntityProfile.Lineage.MasterPlayerAccountId” instead.

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.

xigmasuji avatar image xigmasuji commented ·

Hey yea, this work thanks.

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.