Skip to main content

Create a new user

POST 

<your-unleash-url>/api/admin/user-admin

Creates a new user with the given root role.

Request

Responses

The resource was successfully created.

Response Headers
    location

    The location of the newly created resource.

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
curl -L '<your-unleash-url>/api/admin/user-admin' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>' \
--data-raw '{
"username": "hunter",
"email": "user@example.com",
"name": "Sam Seawright",
"password": "k!5As3HquUrQ",
"rootRole": 1,
"sendEmail": false
}'
Request Collapse all
Base URL
<your-unleash-url>
Auth
Body required
{
  "username": "hunter",
  "email": "user@example.com",
  "name": "Sam Seawright",
  "password": "k!5As3HquUrQ",
  "rootRole": 1,
  "sendEmail": false
}
ResponseClear

Click the Send API Request button above and see the response here!