Create User

POST https://{{API_URL}}/users

Creates a single user and returns the record.

Request Params

KeyDatatypeRequiredDescription
{{BODY PARAMS BELOW}}null
**user string
**emailstringstring - The user will need an email address in order to login to Kenna.
**firstnamestringsring - first nameof the user
**lastnamestringstring - last name of the user
**rolestringstring - role assigned to a user
**phonestringstring - The user's phone number
**current_passwordstringstring - Existing password, if you wish to update the user's password
**passwordstringstring - New password, if you wish to update the user's password. current_password must be provided correctly, or this operation will fail.

Request Body

{"user"=>{"email"=>"", "firstname"=>"", "lastname"=>"", "roles"=>["normal user", "custom_user"], "role_ids"=>[4422, 4433], "phone"=>"", "current_password"=>"", "password"=>""}}