Swagger Petstore - OpenAPI 3.0
POST/user/createWithList

Create users from a list

Creates multiple users from an input array of user representations. Supply each user's available account, contact, credential, and status fields in the request body.

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

8 body fields

An array of user representations to create.

idintegeroptional
usernamestringoptional
firstNamestringoptional
lastNamestringoptional
emailstringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional
User Status

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

Error handling

The request body must contain an array of user objects when supplied. Values such as id and userStatus must be integers, while fields such as username and email must be strings.