Swagger Petstore - OpenAPI 3.0
POST/user/createWithList

Create users from a list

Creates multiple users from an input array of user objects. Supply an optional array when you need to submit several user records in one operation, using the defined fields for each object.

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

8 body fields

Optional array of user objects to create.

idintegeroptional
usernamestringoptional
firstNamestringoptional
lastNamestringoptional
emailstringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional
User Status

2 status codes
200Returns a user object representing the operation result, including account details and status.
idintegeroptional
usernamestringoptional
firstNamestringoptional
lastNamestringoptional
emailstringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional
User Status
defaultUnexpected error

Error handling

The request body is optional; when supplied, it must be an array of user objects. Each object's id must use int64 integer format and its userStatus must use int32 integer format, while fields such as username, email, and password must be strings.