Create User
The Create User API creates a new user.
URL
The HTTP URL for Create User API is:
http://<host>:<port>/api/v1/accessmgmt/users
This service implements the Gateway Filter for Authentication to authenticate access of the service by a user.
Method
POST
Header
The payload's request header includes Content-Type as application/json
Input Parameters
The following fields are input parameters:
Sample Request
{ "userName": "EngagementServicesUser", "email": "sampleuser@kony.com", "password": "Kony@123", "displayName": "EngagementServicesUser", "activeFlag": "true", "mobileNo": "+911235551234", "selectedPermissionIds":["3","4","6"], "selectedGroupIds":["1"] }
Output Parameters
The following fields are output parameters:
Output Parameter | Type | Description |
---|---|---|
id | long | A unique ID assigned to a user |
message | string | Response status message |
Sample Response
{ "id" : "4", "message" : "Details added successfully" }
Response Status
Code | Description |
---|---|
Status 200 | Details added successfully |
Status 400 | User already exists with this user ID |
Status 401 | Unauthorized request |
Status 500 | Server failure to process request |