Users
Create a new user
Changed onCreates a new user with the given root role.
post/api/admin/user-admin
Request
- Base URLhttps://app.unleash-instance.example.com
- URLhttps://app.unleash-instance.example.com/api/admin/user-admin
- Auth
- API key in header Authorization
- or HTTP bearer
Request body
Example request
{
"username": "hunter",
"email": "user@example.com",
"name": "Sam Seawright",
"password": "k!5As3HquUrQ",
"rootRole": 1
}Response
The resource was successfully created.
Example response
{
"id": 123,
"name": "User",
"email": "user@example.com",
"username": "hunter",
"imageUrl": "https://example.com/242x200.png",
"inviteLink": "http://localhost:4242/invite-link/some-secret",
"loginAttempts": 3,
"rootRole": 1,
"seenAt": "2023-06-30T11:42:00.345Z",
"createdAt": "2023-06-30T11:41:00.123Z",
"accountType": "User",
"scimId": "01HTMEXAMPLESCIMID7SWWGHN6",
"seatType": "Regular",
"companyRole": "Developer",
"activeSessions": 2,
"deletedSessions": 1
}Changes
- info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- info
- warning
added the new
Readerenum value to the/response property for the response status - info
added the new
Readerenum value to the request property/ - info
added the optional property
to the response with the status
- warning