Favorite Track
POST/tracks/:track_id/favorites
Favorite a track
Request
Path Parameters
track_id stringrequired
A Track ID
Query Parameters
user_id stringrequired
The user ID of the user making the request
- application/json
Body
is_save_of_repost boolean
Set to true when favoriting a reposted item (used for notifications)
Responses
- 200
- 401
- 404
- 500
Track favorited 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...