Skip to main content
POST
/
user
/
bulk
/
entity
Create Bulk Entity
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/user/bulk/entity \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "data": [
    {
      "artistName": "<string>",
      "firstName": "<string>",
      "lastName": "<string>",
      "email": "jsmith@example.com",
      "splitShare": 123
    }
  ],
  "sendEmail": true,
  "redirect_url": "<string>"
}'
{
  "message": "Bulk entity creation completed.",
  "createdEntities": [
    {
      "artistName": "Melodic Harmony",
      "userName": "Emma Johnson"
    }
  ],
  "processedCount": 1,
  "errors": [
    "Invalid email format for Michael Chen",
    "Invalid split share percentage for Sonic Wave"
  ]
}
/user/bulk/entity Description:
The /user/bulk/entity endpoint allows the creation of multiple entities in bulk by providing details for each entity, including artist name, first name, last name, email, and split share.
Method:
POST
Request Payload:
ParameterTypeDescription
dataarrayAn array of entity objects with their details.
sendEmailbooleanThis sends an invite email to the entities, by default it is true.
redirect_url (Optional)stringThe URL to redirect after creation.

Authentication

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

Request Body

Request Schema

FieldTypeRequiredDescription
dataarrayāœ…
sendEmailbooleanāŒThis sends an invite email to the entities
redirect_urlstringāŒThe URL to redirect after creation

Responses

āœ… 201 - Success - Bulk entity creation completed

āš ļø 401 - Unauthorized

āš ļø 404 - Not Found

āŒ 500 - Internal Server Error

Tags

User

Authorizations

Authorization
string
header
required

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

Body

application/json
data
object[]
required
sendEmail
boolean
default:true

This sends an invite email to the entities

redirect_url
string

The URL to redirect after creation

Response

Success - Bulk entity creation completed

message
string
createdEntities
object[]
processedCount
integer
errors
string[]
⌘I