Skip to main content
POST
/
music
/
requests
Create a new music request
curl --request POST \
  --url https://jamquest-dev.techboo.net/api/v1/music/requests \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "dj_id": 123,
  "song_title": "<string>",
  "artist_name": "<string>",
  "artist_type": "upcoming",
  "music_url": "<string>"
}
'
{
  "id": 123,
  "user_id": 123,
  "dj_id": 123,
  "song_title": "<string>",
  "artist_name": "<string>",
  "artist_type": "<string>",
  "music_url": "<string>",
  "fee": 123,
  "status": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

Access token obtained during login or registration. Use this token in the Authorization header for authenticated requests.

Body

application/json
dj_id
integer
required
song_title
string
required
artist_name
string
required
artist_type
enum<string>
required
Available options:
upcoming,
popular
music_url
string<uri> | null

Response

Music request created successfully

id
integer
user_id
integer
dj_id
integer
song_title
string
artist_name
string
artist_type
string
music_url
string | null
fee
number
status
string
created_at
string<date-time>
updated_at
string<date-time>