dev.tsunagite.submitScore
Submit a score on a given chart.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | tsunagite.dev |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Submit a score on a given chart.",
"errors": [
{
"description": "No game matching the given URI was found.",
"name": "gameNotFound"
},
{
"description": "No song matching the given URI was found.",
"name": "songNotFound"
},
{
"description": "No chart matching the given URI was found.",
"name": "chartNotFound"
},
{
"description": "The submitted score is missing components, or its components hold invalid data.",
"name": "scoreInvalid"
},
{
"description": "The submitted score has already been submitted before.",
"name": "scoreDuplicate"
}
],
"input": {
"encoding": "application/json",
"schema": {
"ref": "dev.tsunagite.score",
"type": "ref"
}
},
"output": {
"encoding": "application/json",
"properties": {
"position": {
"description": "The position in the default leaderboard sort order this score places.",
"minimum": 1,
"type": "integer"
},
"uri": {
"description": "The URI of the newly-created score.",
"type": "string"
}
},
"required": [
"uri"
],
"type": "object"
},
"type": "procedure"
}
},
"description": "Definitions related to submitting scores to games hosting leaderboards via Tsunagite.",
"id": "dev.tsunagite.submitScore",
"lexicon": 1
}