ユーザーリストを作成する
指定された入力リストからユーザーの一覧を作成します。
POST https://petstore3.swagger.io/api/v3/user/createWithList
例
- API Key
- OAuth 2.0
cURL
POST "https://petstore3.swagger.io/api/v3/user/createWithList" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-H "api_key: <YOUR_API_KEY>" \
-d \
[
{
"id": 0,
"username": "文字列",
"firstName": "文字列",
"lastName": "文字列",
"email": "文字列",
"password": "文字列",
"phone": "文字列",
"userStatus": 0
}
]
cURL
POST "https://petstore3.swagger.io/api/v3/user/createWithList" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <YOUR_OAUTH_TOKEN>" \
-d \
[
{
"id": 0,
"username": "文字列",
"firstName": "文字列",
"lastName": "文字列",
"email": "文字列",
"password": "文字列",
"phone": "文字列",
"userStatus": 0
}
]
レスポンス
| コード | 説明 |
|---|---|
| 200 | 操作成功 |
| default | 操作成功 |
レスポンス例
200: 操作成功
Response
{
"id": 0,
"username": "文字列",
"firstName": "文字列",
"lastName": "文字列",
"email": "文字列",
"password": "文字列",
"phone": "文字列",
"userStatus": 0
}
パラメータ
リクエスト本文
| 名前 | タイプ | 説明 |
|---|---|---|
body | Array of User オブジェクトs | 必須。 作成する User オブジェクトの一覧。 |