create_user

Description

Create a new user

Parameters

username
password
email
first_name
last_name

Request

curl -X POST \
-H "Authorization: Token d37fa8c4e008fec158070b1b4aea5f0db3d6a06e" \
-H "Content-Type: application/json" \
-d '{"username":"testuser","password": "password","email": "myemail@gmail.com","first_name":"Firstname","last_name": "Lastname"}' \
-k https://your.domain.com/api/users/create_user

Responses

{
    "id": 6,
    "first_name": "Firstname",
    "last_name": "LastName",
    "username": "testuser",
    "email": "email@gmail.com",
    "status": "success"
}