This question most likely has an obvious answer, but I we weren't able to find it easily:
We're interested in utilizing the UpdateCatalogItems to have our server update the inventory of the game on Playfab. We were unable to see what the requirements were for making Admin API calls was?
Obviously things like banning users shouldn't be allowed in the Client API, so we were wondering what the process was for setting up and using Admin API commands. Particularly if there is any kind of authentication involved.
Happy to be pointed at documentation somewhere, we just weren't able to find anything after a bit of a search.
Answer by Brendan · Nov 15, 2017 at 08:50 AM
The Admin (and Server) API calls need to have the Secret Key in their header as the X-SecretKey parameter. You can see examples of this in our documentation for the Server/Admin API calls (ex: https://api.playfab.com/documentation/admin/method/BanUsers), as well as in our SDKs and Postman collection (https://api.playfab.com/sdks/postman - I highly recommend Postman as a handy tool for testing Web API calls).
So, calling UpdateCatalogItems (or any other Admin API call) from a server is quite simple. But can you detail more about your use case? Bear in mind that updates to title-level configuration information, like catalogs and title data, should be fairly infrequent, and cannot be triggered based on a client-originating action. How are you planning on using that API method?
Awesome, thank you for the info!
Postman looks great, we will give that a shot!
The use case seems appropriate - allowing our designers to bulk edit and update our catalog of 'items' without having to hand-edit things in the PlayFab cms - most likely a few times every few weeks, if we're doing it right!
Yes, an Admin tool for use by your designers is a perfect use case - thanks for clarifying!