This endpoint requires authentication. Include your Bearer token in the Authorization header.
Code Examples
Authorizations
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Body
application/json
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/artist/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "artists": [
    {
      "artistName": "<string>",
      "signDate": "2023-12-25",
      "label": "<string>",
      "externalId": "<string>",
      "users": [
        "<string>"
      ],
      "split": [
        {
          "user": "<string>",
          "share": 123
        }
      ]
    }
  ]
}'{
  "message": "Bulk artist creation completed",
  "createdArtists": [
    "Artist One",
    "Artist Two"
  ],
  "processedCount": 3,
  "errors": [
    "Artist Three already exists"
  ]
}artist/bulk
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/artist/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "artists": [
    {
      "artistName": "<string>",
      "signDate": "2023-12-25",
      "label": "<string>",
      "externalId": "<string>",
      "users": [
        "<string>"
      ],
      "split": [
        {
          "user": "<string>",
          "share": 123
        }
      ]
    }
  ]
}'{
  "message": "Bulk artist creation completed",
  "createdArtists": [
    "Artist One",
    "Artist Two"
  ],
  "processedCount": 3,
  "errors": [
    "Artist Three already exists"
  ]
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/artist/bulk', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "artists": [
      {
        "artistName": "sample-artistName",
        "signDate": "2024-01-21",
        "label": "sample-label",
        "externalId": "sample-externalId",
        "users": [
          {}
        ],
        "split": [
          {
            "user": "sample-user",
            "share": 1
          }
        ]
      }
    ]
  })
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Show child attributes