dev.tsunagite.submitScore

tsunagite.dev

Documentation

Submit a score on a given chart.

main procedure

Submit a score on a given chart.

Input

Encodingapplication/json

Output

Encodingapplication/json

Errors

gameNotFound No game matching the given URI was found.
songNotFound No song matching the given URI was found.
chartNotFound No chart matching the given URI was found.
scoreInvalid The submitted score is missing components, or its components hold invalid data.
scoreDuplicate The submitted score has already been submitted before.
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://bsky.social)
Enter valid JSON for the request body
View raw schema
{
  "type": "procedure",
  "input": {
    "schema": {
      "ref": "dev.tsunagite.score",
      "type": "ref"
    },
    "encoding": "application/json"
  },
  "errors": [
    {
      "name": "gameNotFound",
      "description": "No game matching the given URI was found."
    },
    {
      "name": "songNotFound",
      "description": "No song matching the given URI was found."
    },
    {
      "name": "chartNotFound",
      "description": "No chart matching the given URI was found."
    },
    {
      "name": "scoreInvalid",
      "description": "The submitted score is missing components, or its components hold invalid data."
    },
    {
      "name": "scoreDuplicate",
      "description": "The submitted score has already been submitted before."
    }
  ],
  "output": {
    "type": "object",
    "encoding": "application/json",
    "required": [
      "uri"
    ],
    "properties": {
      "uri": {
        "type": "string",
        "description": "The URI of the newly-created score."
      },
      "position": {
        "type": "integer",
        "minimum": 1,
        "description": "The position in the default leaderboard sort order this score places."
      }
    }
  },
  "description": "Submit a score on a given chart."
}

Lexicon Garden

@