Hust Musik
  1. Song
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
    • Get Artist By ID
      GET
    • Add Artist
      POST
    • Update Artist
      POST
    • Delete Artist
      DELETE
  • Collection
    • Get All Collections
    • Get All Playlists
    • Get All Albums
    • Get Collection By ID
    • Add Collection
    • Update Collection
    • Delete Collection
    • Add Song To Collection
    • Delete Song From Collection
  • 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. Song

Update Song

POST
/v1/song/{id}
Song
Why POST? Because we are dealing with form data, sometimes it just doesnt accept PUT or PATCH (tribute to Lưu Đức Tài)

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:
3e9d9f8e-2240-48ec-917a-59052380ea7a
Body Params multipart/form-data
genre
string 
required
thumbnailurl
string 
required
duration
number 
required
releasedate
string 
required
file
file 
required
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

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/song/3e9d9f8e-2240-48ec-917a-59052380ea7a' \
--form 'genre=""' \
--form 'thumbnailurl=""' \
--form 'duration=""' \
--form 'releasedate=""' \
--form 'file=@"C:\\Users\\ADMIN\\Downloads\\Musik Streamin\\songs\\Taylor Swift - THE TORTURED POETS DEPARTMENT (Deluxe) (2024) Mp3 320kbps [PMEDIA] ⭐️\\Cover.jpg"' \
--form 'title=""'

Responses

🟢200Success
application/json
Body
object {0}
Example
{}
Modified at 2024-11-08 12:29:36
Previous
Get Song By ID
Next
Delete Song
Built with