Skip to content
On this page

Creates list of users with given input array.

Creates list of users with given input array.

POST/user/createWithListCreates list of users with given input array.
curl -X POST 'https://petstore3.swagger.io/api/v3/user/createWithList' \
  -H 'Content-Type: application/json' \
  --data-raw '[
  {
    "id": 10,
    "username": "theUser",
    "firstName": "John",
    "lastName": "James",
    "email": "john@email.com",
    "password": "12345",
    "phone": "12345",
    "userStatus": 1
  }
]'
Example response · 200
{
  "id": 10,
  "username": "theUser",
  "firstName": "John",
  "lastName": "James",
  "email": "john@email.com",
  "password": "12345",
  "phone": "12345",
  "userStatus": 1
}

#Authentication

No authentication needed.

#Request body

application/json · Type: array of User

idinteger (int64)
usernamestring
firstNamestring
lastNamestring
emailstring
passwordstring
phonestring
userStatusinteger (int32)

User Status

Example
[
  {
    "id": 10,
    "username": "theUser",
    "firstName": "John",
    "lastName": "James",
    "email": "john@email.com",
    "password": "12345",
    "phone": "12345",
    "userStatus": 1
  }
]

#Responses

Successful operation

application/json application/xml · Type: User

idinteger (int64)
usernamestring
firstNamestring
lastNamestring
emailstring
passwordstring
phonestring
userStatusinteger (int32)

User Status

{
  "id": 10,
  "username": "theUser",
  "firstName": "John",
  "lastName": "James",
  "email": "john@email.com",
  "password": "12345",
  "phone": "12345",
  "userStatus": 1
}