Auf dieser Seite
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
}
]'Beispielantwort · 200
{
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@email.com",
"password": "12345",
"phone": "12345",
"userStatus": 1
}#Authentifizierung
Keine Authentifizierung nötig.
#Anfrage-Body
application/json · Typ: array of User
idinteger (int64)usernamestringfirstNamestringlastNamestringemailstringpasswordstringphonestringuserStatusinteger (int32)User Status
Beispiel
[
{
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@email.com",
"password": "12345",
"phone": "12345",
"userStatus": 1
}
]#Antworten
Successful operation
application/json application/xml · Typ: User
idinteger (int64)usernamestringfirstNamestringlastNamestringemailstringpasswordstringphonestringuserStatusinteger (int32)User Status
{
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@email.com",
"password": "12345",
"phone": "12345",
"userStatus": 1
}<user>
<id>10</id>
<username>theUser</username>
<firstName>John</firstName>
<lastName>James</lastName>
<email>john@email.com</email>
<password>12345</password>
<phone>12345</phone>
<userStatus>1</userStatus>
</user>Unexpected error