メインコンテンツまでスキップ

ユーザーリストを作成する

指定された入力リストからユーザーの一覧を作成します。

POST https://petstore3.swagger.io/api/v3/user/createWithList

例​

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
}
]

レスポンス​

コード説明
200操作成功
default操作成功
レスポンス例​

200: 操作成功

レスポンス
{
"id": 0,
"username": "文字列",
"firstName": "文字列",
"lastName": "文字列",
"email": "文字列",
"password": "文字列",
"phone": "文字列",
"userStatus": 0
}

パラメータ​

リクエスト本文​
名前タイプ説明
bodyArray of User オブジェクトs必須。 作成する User オブジェクトの一覧。