Create User
POST https://{{API_URL}}/users
Creates a single user and returns the record.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
{{BODY PARAMS BELOW}} | null | ||
**user | string | ||
**email | string | string - The user will need an email address in order to login to Kenna. | |
**firstname | string | sring - first nameof the user | |
**lastname | string | string - last name of the user | |
**role | string | string - role assigned to a user | |
**phone | string | string - The user's phone number | |
**current_password | string | string - Existing password, if you wish to update the user's password | |
**password | string | string - 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"=>""}}