POST/user/createWithList

Create multiple user accounts

Creates multiple user accounts from an array of user objects. Send the accounts as an array in the optional request body, using the defined user fields for each object. The response contains a user object.

  • IdempotentThe SDK sends Idempotency-Key, so a retried request is only applied once.

8 body fields

An array of user objects to create. Each object can contain email, firstName, id, lastName, password, phone, userStatus, and username.

emailstringoptional
firstNamestringoptional
idintegeroptional
lastNamestringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional

User Status

usernamestringoptional

2 status codes
200Returns a user object.
emailstringoptional
firstNamestringoptional
idintegeroptional
lastNamestringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional

User Status

usernamestringoptional
defaultReturned when an unexpected error occurs.

Error handling

The request body is optional; when you provide it, it must be an array of user objects. Each object can include fields such as username, email, and password; the schema does not mark any object fields as required.