Sample - Swagger Petstore OpenAPI 3
POST/user/createWithList

Create users from a list

Creates multiple users from an array of user objects. Place each user's identity, contact, credential, and status fields in the request body, which may be omitted. A successful response returns a user object.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

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.
idintegeroptional
usernamestringoptional
firstNamestringoptional
lastNamestringoptional
emailstringoptional
passwordstringoptional
phonestringoptional
userStatusintegeroptional
User Status
defaultReturned when an unexpected error occurs.

Error handling

If you provide a request body, it must be an array of user objects, and each defined field must use its schema type. Use integer values for id and userStatus, and string values for the remaining user fields.