Admin API
The Admin API is an alternative method to administrate an MKNet environment, it can be particularly useful for automating tasks that are repetitive.
An example use case for the Admin API is uploading asset bundles whenever a game release has been built and tested. A script can be created to generate the asset bundles for the game and uploaded to MKNet using the admin APIs.
Set up #
All requests to the Admin APIs must be authenticated. In order to authenticate requests, you will need an Active Directory application created for your project. You will need to ask the backend team to create one of these for you.
You will be given the following details:
- Client Id
- Client Secret
- Tenant Id
- Scope for your projects Admin API. There will likely be two, one for staging and one for production.
- URL of your projects Admin API. There will likely be two, one for staging and one for productionIt is very important that the client secret is kept secret, do not share it around unnecessarily. If giving these details to Mighty Games, ask them to store the secret as a secret in their build system.
Making API Request to the Admin API #
Example of making a request to an Admin API:
Example of Uploading an Asset Bundle and waiting for completion