Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by jcoriston · Nov 15, 2017 at 08:46 AM · apisAuthenticationdocumentation

Admin calls?

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.

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

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?

Comment

People who like this

0 Show 2 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image jcoriston · Nov 15, 2017 at 07:18 PM 0
Share

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!

avatar image Brendan ♦♦ jcoriston · Nov 15, 2017 at 07:19 PM 0
Share

Yes, an Admin tool for use by your designers is a perfect use case - thanks for clarifying!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    Get Language List fails at Entity Authentication 2 Answers

    Group policy for invitations and applications 1 Answer

    Authentication via Google Play Games 2 Answers

    Unreal Playfab Multiplayer,Unreal Multiplayer Playfab 1 Answer

    Can't use RequestMultiplayerServer API from Client 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges