/sonolus/{type}/{itemName}/community/comments/{commentName}/upload allows Sonolus app to upload files when submitting community actions to comment of name {commentName} in item of name {itemName}.
URL Parameters
| URL Parameter | Value | Description |
|---|
type | string | posts, playlists, levels, skins, backgrounds, effects, particles, engines, or replays. |
itemName | string | Name of item. |
commentName | string | Name of comment. |
Query Parameters
Request Body
multipart/form-data encoded data with files field.
Response Code
| Code | Description |
|---|
200 OK | |
401 Unauthorized | Authentication required or expired. |
404 Not Found | |
Response Body
type ServerUploadItemCommunityCommentActionResponse = {
shouldUpdateCommunity?: boolean
shouldUpdateComments?: boolean
shouldNavigateCommentsToPage?: number
}
Examples