dev.tsunagite.submitScore

Submit a score on a given chart.

Repository @tsunagite.dev did:plc:pz4sp2vf5w26wnaee253gfms namespace authority
Details · procedure
Kindprocedure
Authoritytsunagite.dev
Indexed
cid bafyreiexye35syp6wcfmjc7te7ivktdjt2gooyqhmvn7bp3dzfpn3swf4m

Checks

Valid Lint pass
JSONDownload
{
  "$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
}