Hust Musik
  1. Collection
Hust Musik
  • User
    • Get All Users
      GET
    • Get User By ID
      GET
    • Get User Profile
      GET
    • Get User Listen History
      GET
    • Get Followed Artists
      GET
    • Update User Profile
      POST
    • Get User Playlists
      GET
    • Upsert User Listen History
      POST
    • Follow Artist
      POST
    • Unfollow Artist
      DELETE
  • Song
    • Get All Songs
      GET
    • Add Song
      POST
    • Get Song By ID
      GET
    • Update Song
      POST
    • Delete Song
      DELETE
    • Generate Presigned Download
      GET
    • Generate Presigned Upload
      GET
  • Auth
    • Register User
      POST
    • Sign In
      POST
    • Sign Out
      GET
    • Google Sign In
      GET
    • Update User Credentials
      POST
    • Renew Session
      POST
  • Artist
    • Get All Artists
    • Get Artist By ID
    • Add Artist
    • Update Artist
    • Delete Artist
  • Collection
    • Get All Collections
      GET
    • Get All Playlists
      GET
    • Get All Albums
      GET
    • Get Collection By ID
      GET
    • Add Collection
      POST
    • Update Collection
      POST
    • Delete Collection
      DELETE
    • Add Song To Collection
      POST
    • Delete Song From Collection
      DELETE
  • Search
    • Default Search
    • Search Songs
    • Search Albums
    • Search Playlists
    • Search Users
    • Search Artists
  • Payment
    • Create Zalo Order
    • Get Zalo Order Status
  • Check Health
    GET
  1. Collection

Update Collection

POST
/v1/collection/{id}
Collection

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
id
string 
required
Body Params multipart/form-data
file
string 
optional
title
string 
optional
description
string 
optional
type
string 
optional
visibility
string 
optional
thumbnailurl
string 
optional

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.hustmusik.live/v1/collection/' \
--form 'file=""' \
--form 'title=""' \
--form 'description=""' \
--form 'type=""' \
--form 'visibility=""' \
--form 'thumbnailurl=""'

Responses

🟢200Success
application/json
Body
data
object 
required
id
string 
required
title
string 
required
description
string  | null 
required
type
string 
required
thumbnailurl
string 
required
owner
object 
required
songs
array[string]
required
Example
{
    "data": {
        "id": "9133244f-e7db-418e-b3fb-17c230418bfd",
        "title": "GitGud",
        "description": null,
        "type": "Playlist",
        "thumbnailurl": "<image link>",
        "owner": {
            "id": "aa587095-a604-4c32-9215-ac74a1db33d5",
            "username": "TestUpdated",
            "avatarurl": "<image link>"
        },
        "songs": []
    }
}
Modified at 2024-11-03 15:03:29
Previous
Add Collection
Next
Delete Collection
Built with