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/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"
  ]
}/user/bulk
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"
  ]
}const response = await fetch('https://server26-dot-royalti-project.uc.r.appspot.com/user/bulk', {
  method: 'POST',
  headers: {
    'Authorization': `Bearer ${token}`,
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    "users": [
      {
        "firstName": "sample-firstName",
        "lastName": "sample-lastName",
        "nickName": "sample-nickName",
        "userType": "sample-userType",
        "email": "sample-email",
        "ipi": "sample-ipi",
        "role": "sample-role",
        "phone": "sample-phone",
        "country": "sample-country"
      }
    ],
    "sendEmail": true,
    "redirect_url": "sample-redirect_url",
    "message": "sample-message"
  })
});
const data = await response.json();
console.log(data);
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"