https:/​/​rest.course-source.net/​user

POST

Create a user

Note: if a Password is specified it should be hashed (i.e. not sent as plaintext) and the same hashing function should be used in POST /user/​check/​{LoginID}

Payload Parameters & Defaults...
LoginID: (no default, the only mandatory parameter - this cannot be changed so using the user's unique ID in your system is recommended)
FirstName: (null)
LastName: (null)
GroupName: (null, e.g. can be used for your internal departments or your customer companies if you have a multi-tenant system)
Email: (null)
Password: will be set to a random value for security purposes if not specified
IsAdmin: false (other valid value: true, gives the user administration rights)
Register: false (other valid value: true, denotes that the user is registering an account themselves)

Example payload...
{
   "LoginID":"ID4567",
   "FirstName":"John",
   "LastName":"Smith",
   "GroupName":"ACME Ltd.",
   "Password":"V$;Jj|L)d66s~9u.rVOO[*_[HYA4f(xRY2Rq|[}PVIX|NZaNJc,o"
}


If successful returns the same user information as GET /user/​{LoginID} and PUT /user/​{LoginID}

Response