Single User Creation

View as Markdown
Create a single user account in the system. This endpoint accepts standard user fields like name, email, password, and role. It performs validation, assigns the user to the specified org unit, and returns the user details upon success. Use this endpoint when creating one user at a time.

Request

This endpoint expects an object.
authstringRequired
rolestringRequired
optional
emailstringRequired
validstringRequired

0: suspended user; 1: active user

lastnamestringRequired
passwordstringRequired

(if not specified password will be generated and sent to the user)

usernamestringRequired
firstnamestringRequired

Response headers

Keep-Alivestring
X-Powered-Bystring

Response

OK
idstinteger
messagestring
successboolean
userdataobject