Add a new album
POST
/api/v1/artists/{artistId}/albums
Add a new album to a legendary Argentine Rock artist. Make sure it's a masterpiece! You can view all albums using the GETGet all albums endpoint.
Authorizations
bearerAuth
Type
HTTP (bearer)
or
apiKeyHeader
Type
API Key (header: X-API-Key)
Parameters
Path Parameters
artistId*
Type
Requiredinteger
Example
1Format
"int64"Request Body
application/json
JSON "id": 1, "name": "La Máquina de Hacer Pájaros", "year": 1976, "image": "https://cdn.rock-legends.com/photos/la-maquina.jpg"
{
}
Responses
Album Created Successfully
The album has been successfully added to the artist's discography.
Response Details
The response includes the complete album object with:
- A newly assigned unique
id - All the information you provided in the request
- The association with the artist
application/json
JSON "id": 1, "name": "La Máquina de Hacer Pájaros", "year": 1976, "image": "https://cdn.rock-legends.com/photos/la-maquina.jpg"
{
}