David,
There are 2 different flavors of snapshots that GS exposes - one is to snapshot the game config (cloud code, properties, etc) and the other is to snapshot the screens/snippets that are found under the 'Manage' screen. You are creating a 'Manage' snapshot.
The config snapshot url is https://config2.gamesparks.net/restv2/game/{0}/admin/snapshots
while the manage snapshot url is:
https://config2.gamesparks.net/restv2/game/{0}/manage/snapshots/
See:
https://docs.gamesparks.com/documentation/manage/creating-and-managing-screen-snapshots.html
https://docs.gamesparks.com/api-documentation/rest-apis/game-admin.html#/snapshots
vs
https://docs.gamesparks.com/documentation/key-concepts/snapshots.html
https://docs.gamesparks.com/api-documentation/rest-apis/game-admin.html#/manage
best of luck!!
Jeff
David White
Hello! I'm trying to use the REST APIs to automate managing my game, and am running into a very odd problem.
Here's a snippet showing what would appear to be a successful API call to createSnapshot:
As you can see, I seem to have succeeded, I get the 201 HTTP status code that should indicate a successful request. However, the snapshot doesn't appear in the list of snapshots associated with my game on the GameSparks Portal, and I attempts to GET /restv2/game/[REDACTED]/admin/snapshots/[value of "id" field in response] with suitable "X-GSAccessToken" return a 404 status.
What in the world is going on? This is very confusing.