Users
Create users from a list
Submit an array of User objects in one request.
Creates users from an input array. The operation declares no security requirement, and its successful response schema is one User object rather than an array.
The native request panel cannot represent a top-level JSON array. Use the complete cURL example after the endpoint block.
Create users from an input array.
POST
/user/createWithListResponse
{200}Successful operation
cURL
curl --request POST \ --url https://petstore3.swagger.io/api/v3/user/createWithList
{
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "john@example.com",
"password": "example-password",
"phone": "5550100",
"userStatus": 1
}bash
curl --request POST \
--header 'Content-Type: application/json' \
--data '[{"id":10,"username":"theUser"}]' \
'https://petstore3.swagger.io/api/v3/user/createWithList'The request body is optional in the contract. The contract also defines a default Unexpected error response without a fixed status or body schema.