-
-
Notifications
You must be signed in to change notification settings - Fork 35
Admin tools
Jay Malhotra edited this page Oct 15, 2023
·
1 revision
The server has a number of admin backend tools to help with development and/or administration. Any requests to these endpoints must be authenticated using the developer token as a bearer token.
The server has a GraphQL endpoint at /api/savefile/graphql
which exposes admin functionality for querying/mutating player savefiles.
This is not an exhaustive list; the schema is auto-generated so to see all possible mutations/queries please use a GraphQL client such as Postman.
Add materials to a player's gift box
mutation {
givePresent(viewerId: 1717, entityType: Material, entityId: 201014002, entityQuantity: 5) {
presentId
}
}
Get a player's tutorial_flag_list
query {
player(viewerId: 609) {
userData {
tutorialFlagList
}
}
}
The REST endpoints GET /api/savefile/export/{viewerId}
and POST /api/savefile/import/{viewerId}
allow you to manually import / export saves without having to deal with the BaaS system.