उपयोगकर्ताओं की एक सूची बनाएँ
दी गई इनपुट सूची के साथ उपयोगकर्ताओं की एक सूची बनाएँ।
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 ऑब्जेक्ट्स की सूची। |