Sonolus Wiki

POST /sonolus/{type}/{itemName}/community/upload

/sonolus/{type}/{itemName}/community/upload allows Sonolus app to upload files when submitting community actions to item of name {itemName}.

URL Parameters

URL ParameterValueDescription
typestringposts, playlists, levels, skins, backgrounds, effects, particles, engines, or replays.
itemNamestringName of item.

Query Parameters

Query ParameterValueDescription
localizationstringSee localization.
Configuration OptionsanySee Options Query Parameters.

Request Headers

HeaderValueDescription
Sonolus-SessionstringOptional, see Sonolus-Session.
Sonolus-Upload-KeystringSee POST /sonolus/{type}/{itemName}/community/submit.

Request Body

multipart/form-data encoded data with files field.

Response Code

CodeDescription
200 OK
401 UnauthorizedAuthentication required or expired.
404 Not Found

Response Headers

HeaderValueDescription
Sonolus-VersionstringOptional, see Sonolus-Version.

Response Body

type ServerUploadItemCommunityActionResponse = {}

Examples

{}