Create a record for a game that will host leaderboards via Tsunagite. If the game already exists, update its data.
Input
Encoding
text/jsongame
refdev.tsunagite.game
Required
No description available.
id
stringrecord-key
Required
The ID of this game. Should only include [a-zA-Z0-9-].
Output
Encoding
text/jsonprofileKey
stringnsid
Optional
The record key that should be used for this game's player profiles.
uri
stringat-uri
Optional
The URI pointing to the game's newly-created record.
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"id",
"game"
],
"properties": {
"id": {
"type": "string",
"format": "record-key",
"description": "The ID of this game. Should only include [a-zA-Z0-9-]."
},
"game": {
"ref": "dev.tsunagite.game",
"type": "ref"
}
}
},
"encoding": "text/json"
},
"output": {
"schema": {
"type": "object",
"properties": {
"uri": {
"type": "string",
"format": "at-uri",
"description": "The URI pointing to the game's newly-created record."
},
"profileKey": {
"type": "string",
"format": "nsid",
"description": "The record key that should be used for this game's player profiles."
}
}
},
"encoding": "text/json"
},
"description": "Create a record for a game that will host leaderboards via Tsunagite. If the game already exists, update its data."
}