English (English)
Theme
POST /sonolus/{type}/{itemName}/community/comments/{commentName}/submit
/sonolus/{type}/{itemName}/community/comments/{commentName}/submit allows Sonolus app to submit community actions to comment of name {commentName} in item of name {itemName}.
/sonolus/{type}/{itemName}/community/comments/{commentName}/submit
{commentName}
{itemName}
type
string
posts
playlists
levels
skins
backgrounds
effects
particles
engines
replays
itemName
commentName
localization
any
Sonolus-Session
type ServerSubmitItemCommunityCommentActionRequest = { values: string }
values
Query parameters of submitted action.
See Options Query Parameters.
200 OK
401 Unauthorized
404 Not Found
Sonolus-Version
type ServerSubmitItemCommunityCommentActionResponse = { key: string hashes: string[] shouldUpdateCommunity?: boolean shouldUpdateComments?: boolean shouldNavigateCommentsToPage?: number }
shouldUpdateCommunity
Whether community section should update or not.
shouldNavigateCommentsToPage
Whether comment list should navigate to specified page or not.
key
Server defined upload key.
hashes
Hashes of files needed to be uploaded.
Only files specified in request body values can be uploaded.
If not empty, files will be uploaded using POST /sonolus/{type}/{itemName}/community/comments/{commentName}/upload.
POST /sonolus/{type}/{itemName}/community/comments/{commentName}/upload
{ "key": "...", "hashes": [ // ... ], "shouldUpdateCommunity": true, "shouldUpdateComments": true, "shouldNavigateCommentsToPage": 5 }
POST /sonolus/{type}/{itemName}/community/comments/{commentName}/submit/sonolus/{type}/{itemName}/community/comments/{commentName}/submitallows Sonolus app to submit community actions to comment of name{commentName}in item of name{itemName}.URL Parameters 
typestringposts,playlists,levels,skins,backgrounds,effects,particles,engines, orreplays.itemNamestringcommentNamestringQuery Parameters 
localizationstringlocalization.anyRequest Headers 
Sonolus-SessionstringSonolus-Session.Request Body 
valuesQuery parameters of submitted action.
See Options Query Parameters.
Response Code 
200 OK401 Unauthorized404 Not FoundResponse Headers 
Sonolus-VersionstringSonolus-Version.Response Body 
shouldUpdateCommunityWhether community section should update or not.
shouldNavigateCommentsToPageWhether comment list should navigate to specified page or not.
keyServer defined upload key.
hashesHashes of files needed to be uploaded.
Only files specified in request body
valuescan be uploaded.If not empty, files will be uploaded using
POST /sonolus/{type}/{itemName}/community/comments/{commentName}/upload.Examples