Record Track Download
POST/tracks/:track_id/downloads
Record a track download event
Request
Path Parameters
track_id stringrequired
A Track ID
Query Parameters
user_id string
The user ID of the user making the request
- application/json
Body
city string
City where the download occurred
region string
Region where the download occurred
country string
Country where the download occurred
Responses
- 200
- 401
- 404
- 500
Track download recorded successfully
- application/json
- Schema
- Example (from schema)
Schema
success boolean
Whether the operation was successful
transaction_hash string
The blockchain transaction hash
{
"success": true,
"transaction_hash": "string"
}
Unauthorized
Track not found
Server error
Loading...