POST
/
user
/
bulk
Create Bulk User
curl --request POST \
  --url https://server26-dot-royalti-project.uc.r.appspot.com/user/bulk \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "users": [
    {
      "firstName": "<string>",
      "lastName": "<string>",
      "nickName": "<string>",
      "userType": "<string>",
      "email": "jsmith@example.com",
      "ipi": "<string>",
      "role": "<string>",
      "phone": "<string>",
      "country": "<string>"
    }
  ],
  "sendEmail": true,
  "redirect_url": "<string>",
  "message": "<string>"
}'
{
  "message": "Done.",
  "createdUsers": [
    "John Doe",
    "Jericho Doe"
  ],
  "processedCount": 3,
  "errors": [
    "User Jane Doe already associated with workspace!",
    "Invalid email format for Jacob Doe",
    "Invalid email format for Jake Doe"
  ]
}

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

201
application/json

Created with Errors

The response is of type object.