Swagger Petstore - OpenAPI 3.0
POST/user/createWithList

Create users from a list

Creates multiple user accounts from an input array. Supply user objects in the request body, using JSON with each object's account fields represented as strings or integers according to the schema. A successful response returns 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.

idintegeroptional
usernamestringoptional
firstNamestringoptional
lastNamestringoptional
emailstringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional
User Status

2 status codes
200Returns a user object containing the created account's identifier and user details.
idintegeroptional
usernamestringoptional
firstNamestringoptional
lastNamestringoptional
emailstringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional
User Status
defaultUnexpected error

Error handling

The request body, when supplied, must be an array of user objects. Each id must be a 64-bit integer and each userStatus must be a 32-bit integer; the remaining defined fields are strings.