DistributeApp LogoDistributeProject
DistributorAlbums

Create album

Creates a new album. Requires an admin JWT.

POST
/albums

Authorization

BearerAuth
Authorization<token>

Type "Bearer" followed by a space and JWT token.

In: header

Request Body

application/json

Album metadata

release_date?string
title*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://loading/api/albums" \  -H "Content-Type: application/json" \  -d '{    "title": "Dark Side of the Moon"  }'
{
  "artist_name": "string",
  "created_at": "string",
  "id": "string",
  "release_date": "string",
  "songs": [
    {
      "album": {
        "artist_name": "string",
        "created_at": "string",
        "id": "string",
        "release_date": "string",
        "songs": [],
        "title": "string"
      },
      "album_id": "string",
      "artists": [
        {
          "albums": [
            {
              "artist_name": "string",
              "created_at": "string",
              "id": "string",
              "release_date": "string",
              "songs": [],
              "title": "string"
            }
          ],
          "created_at": "string",
          "id": "string",
          "identifiers": [
            {
              "artist_id": "string",
              "id": "string",
              "identifier": "string"
            }
          ],
          "name": "string"
        }
      ],
      "created_at": "string",
      "id": "00000000-0000-0000-0000-000000000000",
      "title": "Song Title"
    }
  ],
  "title": "string"
}
{
  "error": "Validation failed"
}
{
  "error": "Validation failed"
}
{
  "error": "Validation failed"
}
{
  "error": "Validation failed"
}