DistributorAlbumsCovers by path
Assign album cover by path
Moves an album cover file from a shared volume path and associates it to an existing album. Requires an admin JWT.
Authorization
BearerAuth Authorization<token>
Type "Bearer" followed by a space and JWT token.
In: header
Request Body
application/json
Request body
album_id*string
source_path*string
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://loading/api/albums/covers-by-path" \ -H "Content-Type: application/json" \ -d '{ "album_id": "00000000-0000-0000-0000-000000000000", "source_path": "/app/storage/downloads/cover.jpg" }'{
"status": "Cover assigned to album successfully"
}{
"error": "Validation failed"
}{
"error": "Validation failed"
}{
"error": "Validation failed"
}{
"error": "Validation failed"
}