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 Song To Collection

POST
/v1/collection/{id}/songs/{songid}
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
Example:
bd61cee1-b440-4729-9761-92390fd1c803
songid
string 
required
Example:
1ad2d128-9196-48d4-83f3-4622d4ab6470

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/bd61cee1-b440-4729-9761-92390fd1c803/songs/1ad2d128-9196-48d4-83f3-4622d4ab6470'

Responses

🟢200Success
application/json
Body
message
string 
required
Example
{"message":"Song 62f73752-f9c0-4611-853d-b10ed4434515 is added to Collection 84314965-219d-47a9-a4cf-5cc0b4cf15d6"}
Modified at 2024-11-06 08:20:34
Previous
Delete Collection
Next
Delete Song From Collection
Built with