Skip to main content
POST
/
product
/
bulk
Create Bulk Products
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/product/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "products": [
    {
      "upc": "<string>",
      "title": "<string>",
      "displayArtist": "<string>",
      "mainArtist": [
        "<string>"
      ],
      "type": "<string>",
      "format": "<string>",
      "releaseDate": "2023-12-25",
      "mainGenre": [
        "<string>"
      ],
      "artists": [
        "<string>"
      ],
      "split": [
        {
          "user": "<string>",
          "share": 123
        }
      ]
    }
  ]
}'
{
  "message": "Bulk product creation completed",
  "createdProducts": [
    "Product One",
    "Product Two"
  ],
  "processedCount": 3,
  "errors": [
    "Product Three UPC already exists"
  ]
}
/product/bulk Description:
The /product/bulk endpoint allows the creation of multiple products simultaneously by providing an array of product objects.
Method:
POST
Request Payload:
ParameterTypeDescription
productsarrayAn array of product objects with their details.

Authentication

This endpoint requires authentication. Include your bearer token in the Authorization header.

Request Body

Request Schema

FieldTypeRequiredDescription
productsarray

Responses

✅ 201 - Created with possible errors

⚠️ 401 - Unauthorized

❌ 500 - Internal Server Error

Tags

Product

Authorizations

Authorization
string
header
required

JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"

Body

application/json
products
object[]
required

Response

Created with possible errors

message
string
createdProducts
string[]
processedCount
integer
errors
string[]
I