Sonolus Wiki

POST /sonolus/levels/result/submit

/sonolus/levels/result/submit allows Sonolus app to submit replay from result screen.

URL Parameters

None.

Query Parameters

Query ParameterValueDescription
localizationstringSee localization.
Configuration OptionsanySee Options Query Parameters.

Request Headers

HeaderValueDescription
Sonolus-SessionstringOptional, see Sonolus-Session.

Request Body

type ServerSubmitLevelResultRequest = {
    replay: ReplayItem
    values: string
}

values

Query parameters of submit.

See Options Query Parameters.

Response Code

CodeDescription
200 OK
401 UnauthorizedAuthentication required or expired.

Response Headers

HeaderValueDescription
Sonolus-VersionstringOptional, see Sonolus-Version.

Response Body

type ServerSubmitLevelResultResponse = {
    key: string
    hashes: string[]
}

key

Server defined upload key.

hashes

Hashes of files needed to be uploaded.

Only files specified in request body replay and values can be uploaded.

If not empty, files will be uploaded using POST /sonolus/levels/result/upload.

Examples

{
    "key": "...",
    "hashes": [
        // ...
    ]
}