Introduction
We have restructured the APIs that were lumped under the Entity API group into coherent logical groups that make their consumption easier, both via the documentation site, and the PlayFab SDKs. The immediate impact is that if you have been using the entity-based APIs in your game, the code will need to be updated when you upgrade your SDKs.Prerequisites
The following conditions must be true for this upgrade guide to apply to you:- You’re using the entity-based PlayFab APIs.
- You have upgraded to a PlayFab SDK, published on 8/9/2018 or later.
There are no service level changes. For example, existing titles using old SDKs will work without requiring changes.
How to upgrade
The fundamental impact of this change is that thePlayFabEntityModel API group has been separated out into six different API groups that are logically bound together, as shown in the following picture.
A full list of Previous Entity API -> New API mapping can be found in APPENDIX 1 of this tutorial.
The Classic API mapping has not been affected.
PlayFabEntityAPIGroup to the new set of API groups.
Upgrade example: C# SDK
Please follow these steps to upgrade your application. Step 1: Change anyusing statements that reference PlayFab.EntityModels such as those shown below.
Conclusion
We’re excited to expose the Entity APIs in a more intuitive way on our documentation site and in our code, based on your feedback. If you have any questions and comments, please contact us via the PlayFab Forums.APPENDIX 1: OLD to NEW API mappings
All of the APIs listed below were previously part of thePlayFabEntityModel API group. They’re now categorized under the following new API groups.
PlayFabProfilesApi
- GetGlobalPolicy
- GetProfile
- GetProfiles
- SetGlobalPolicy
- SetProfilePolicy
PlayFabAuthenticationApi
- GetEntityToken
PlayFabDataApi
- AbortFileUploads
- DeleteFiles
- FinalizeFileUploads
- GetFiles
- InitiateFileUploads
- GetObjects
- SetObjects
PlayFabGroupsApi
- AcceptGroupApplication
- AcceptGroupInvitation
- AddMembers
- ApplyToGroup
- BlockEntity
- ChangeMemberRole
- CreateGroup
- CreateRole
- DeleteGroup
- DeleteRole
- GetEntityToken
- GetGroup
- InviteToGroup
- IsMember
- ListGroupApplications
- ListGroupBlocks
- ListGroupInvitations
- ListGroupMembers
- ListMembershipOpportunities
- RemoveGroupApplication
- RemoveGroupInvitation
- RemoveMembers
- UnblockEntity
- UpdateGroup
- UpdateRole
PlayFabEventsApi
- WriteEvents
PlayFabCloudScriptApi
- ExecuteEntityCloudScript
