Creates list of users with given input array.
1 min
POST
/api/v3/user/createWithList
Header Parameters
- acceptstringDescriptionDefaultapplication/jsonAllowedapplication/jsonapplication/xml
Body Parameters
- bodyUser[]
- idinteger<int64>ExampleFormatint64
- usernamestringExample
- firstNamestringExample
- lastNamestringExample
- emailstringExample
- passwordstringExample
- phonestringExample
- userStatusinteger<int32>ExampleDescriptionFormatint32
Responses
200
- User
- idinteger<int64>ExampleFormatint64
- usernamestringExample
- firstNamestringExample
- lastNamestringExample
- emailstringExample
- passwordstringExample
- phonestringExample
- userStatusinteger<int32>ExampleDescriptionFormatint32
default
curl
curl --request POST \
--url /api/v3/user/createWithList \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '[
{}
]'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var raw = JSON.stringify([
{}
]);
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: raw,
redirect: 'follow'
};
fetch("/api/v3/user/createWithList", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("/api/v3/user/createWithList")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request.body = JSON.dump([
{}
])
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "/api/v3/user/createWithList"
payload = json.dumps([
{}
])
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
200
// Successful operation
{
"id": 10,
"username": "theUser",
"firstName": "John",
"lastName": "James",
"email": "[email protected]",
"password": "12345",
"phone": "12345",
"userStatus": 1
}default
// Unexpected error