POST/user/createWithList

Create multiple users

Creates multiple user accounts from an array of user objects. Provide each user's details using the fields defined for a user; no individual field is schema-required.

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

8 body fields

An array of user objects. Each object's fields are optional in the schema.

emailstringoptional
firstNamestringoptional
idintegeroptional
lastNamestringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional

User Status

usernamestringoptional

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

User Status

usernamestringoptional
defaultUnexpected error

Error handling

The request body is an array of user objects, and no individual field in an object is schema-required. Use the defined fields, such as username, email, and password, to provide each user's details.