View Categories

Creates list of users with given input array.

< 1 min read

POST/user/createWithList

Code Samples #

  • 💻 cURL
  • 📄 JavaScript
  • 🐍 Python
  • 🐘 PHP
  • 🔷 C#
  • Java
Copy
curl --request POST \
  --url '/api/v3/user/createWithList' \
  --header 'Content-Type: application/json' \
  --data '[
    {
        "id": 10,
        "username": "theUser",
        "firstName": "John",
        "lastName": "James",
        "email": "john@email.com",
        "password": "12345",
        "phone": "12345",
        "userStatus": 1
    }
]'

Creates list of users with given input array.

Request Body #

Content type: application/json

FieldTypeRequiredDescription
[].idinteger (int64)Optional
[].usernamestringOptional
[].firstNamestringOptional
[].lastNamestringOptional
[].emailstringOptional
[].passwordstringOptional
[].phonestringOptional
[].userStatusinteger (int32)OptionalUser Status
📋
Example request
Copy
[
    {
        "id": 10,
        "username": "theUser",
        "firstName": "John",
        "lastName": "James",
        "email": "john@email.com",
        "password": "12345",
        "phone": "12345",
        "userStatus": 1
    }
]

Responses #

200 — Successful operation #

FieldTypeRequiredDescription
idinteger (int64)Optional
usernamestringOptional
firstNamestringOptional
lastNamestringOptional
emailstringOptional
passwordstringOptional
phonestringOptional
userStatusinteger (int32)OptionalUser Status
📋
Example 200 response
Copy
{
    "id": 10,
    "username": "theUser",
    "firstName": "John",
    "lastName": "James",
    "email": "john@email.com",
    "password": "12345",
    "phone": "12345",
    "userStatus": 1
}

default — Unexpected error #

Response #

200
{
    "id": 10,
    "username": "theUser",
    "firstName": "John",
    "lastName": "James",
    "email": "john@email.com",
    "password": "12345",
    "phone": "12345",
    "userStatus": 1
}

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *

This site is registered on wpml.org as a development site. Switch to a production site key to remove this banner.