Create Users With List Input
Creates list of users with given input array.
Request
URI
POST
https://petstore3.swagger.io/user/createWithList
COPY
Request Body
[
{
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "[email protected]",
"password": "12345",
"phone": "12345",
"userStatus": 1
}
]
Responses
200
Successful operation
Returns
User
of type(s)
application/json
"User Object"
integer As int64
As int64
id
Optional
id
string
username
Optional
username
string
firstName
Optional
firstName
string
lastName
Optional
lastName
string
email
Optional
string
password
Optional
password
string
phone
Optional
phone
integer As int32
As int32
userStatus
Optional
User Status
default
Unexpected error
Returns
Error
of type(s)
application/json
"Error Object"
string
code
Required
code
string
message
Required
message
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/user/createWithList