DistributeApp LogoDistributeProject
DistributorArtists

Create artist

Creates an artist with one or more aliases. Requires an admin JWT.

POST
/artists

Authorization

BearerAuth
Authorization<token>

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

In: header

Request Body

application/json

Artist payload

identifiers*array<string>
name*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://loading/api/artists" \  -H "Content-Type: application/json" \  -d '{    "identifiers": [      "beatles",      "the-beatles"    ],    "name": "The Beatles"  }'
{
  "albums": [
    {
      "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": [],
              "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"
    }
  ],
  "created_at": "string",
  "id": "string",
  "identifiers": [
    {
      "artist_id": "string",
      "id": "string",
      "identifier": "string"
    }
  ],
  "name": "string"
}
{
  "error": "Validation failed"
}
{
  "error": "Validation failed"
}
{
  "error": "Validation failed"
}
{
  "error": "Validation failed"
}