POST /sonolus/{type}/{itemName}/upload
/sonolus/{type}/{itemName}/upload
allows Sonolus app to upload files when submitting actions to 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. |
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 ServerUploadItemActionResponse = {
shouldUpdateItem?: boolean
shouldRemoveItem?: boolean
shouldNavigateToItem?: string
}
Examples