# Creates list of users with given input array.

Creates list of users with given input array.

[Creates list of users with given input array.](https://clay-doc.github.io/clay-example-repo/api/petstore/user/create-users-with-list-input.md)

```sh
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
  }
]'
```
## Authentication

No authentication needed.

## Request body

:badge[application/json]{note} · Type: array of [User](https://clay-doc.github.io/clay-example-repo/api/petstore/schemas/user.md)

::: fields
- `id` integer (int64)
- `username` string
- `firstName` string
- `lastName` string
- `email` string
- `password` string
- `phone` string
- `userStatus` integer (int32)

  User Status
:::

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

## Responses

::: tabs status
== 200

Successful operation

:badge[application/json]{note} :badge[application/xml]{note} · Type: [User](https://clay-doc.github.io/clay-example-repo/api/petstore/schemas/user.md)

::: fields
- `id` integer (int64)
- `username` string
- `firstName` string
- `lastName` string
- `email` string
- `password` string
- `phone` string
- `userStatus` integer (int32)

  User Status
:::

::: code-group
```json [application/json]
{
  "id": 10,
  "username": "theUser",
  "firstName": "John",
  "lastName": "James",
  "email": "john@email.com",
  "password": "12345",
  "phone": "12345",
  "userStatus": 1
}
```
```xml [application/xml]
<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>
```
:::

== default

Unexpected error
:::

---

All pages of these docs, as Markdown for language models: https://clay-doc.github.io/clay-example-repo/llms.txt
