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

Add Collection

POST
/v1/collection

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Body Params multipart/form-data
file
file 
optional
Example:
file://C:\Users\ADMIN\Downloads\Musik Streamin\songs\Taylor Swift - THE TORTURED POETS DEPARTMENT (Deluxe) (2024) Mp3 320kbps [PMEDIA] ⭐️\Cover.jpg
title
string 
required
Example:
THE TORTURED POETS DEPARTMENT
description
string 
optional
thumbnailurl
string 
optional
type
string 
optional
Example:
Album
visibility
string 
optional
Example:
Public

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=@"C:\\Users\\ADMIN\\Downloads\\Musik Streamin\\songs\\Taylor Swift - THE TORTURED POETS DEPARTMENT (Deluxe) (2024) Mp3 320kbps [PMEDIA] ⭐️\\Cover.jpg"' \
--form 'title="THE TORTURED POETS DEPARTMENT"' \
--form 'description=""' \
--form 'thumbnailurl=""' \
--form 'type="Album"' \
--form 'visibility="Public"'

Responses

🟢200Success
application/json
Body
data
object 
required
id
string 
required
title
string 
required
description
null 
required
type
string 
required
thumbnailurl
string 
required
owner
object 
required
songs
array[string]
required
Example
{
    "data": {
        "id": "9133244f-e7db-418e-b3fb-17c230418bfd",
        "title": "TestAPI",
        "description": null,
        "type": "EP",
        "thumbnailurl": "<image link>",
        "owner": {
            "id": "aa587095-a604-4c32-9215-ac74a1db33d5",
            "username": "TestUpdated",
            "avatarurl": "<image link>"
        },
        "songs": []
    }
}
Modified at 2024-11-08 12:33:28
Previous
Get Collection By ID
Next
Update Collection
Built with