User Create
Use this API to get create individual user in LMS.
HTTP REQUEST
POST /user/create
REQUEST BODY PARAMETERS
| title required |
string | Title. It should be Mr, Mrs, Ms, Dr, Prof |
| firstName required |
string | First Name |
| lastName required |
string | Last Name |
| email required |
string | Email Address |
| countryCode | string | Country code |
| mobile | string | Contact Number |
| userCanChoosePassword required |
integer | 0-no, 1-Yes |
| password | string | If userCanChoosePassword = 1 than set password. |
| uniqueId | string | Roll no |
| roleId required |
integer | Role ID i.e Trainee – 3 |
| reportingTo | integer | Id of the reporting person. |
| companyName | string | Company Name |
| department | integer | Department ID |
| designation | integer | Designation ID |
| zipcode | string | Pincode |
| city | integer | City ID |
| state | integer | State ID |
| country | integer | Country ID |
| timezone | string | Timezone |
| language | string | Language e.g en-Us |
| sendEmailNotification | integer | 1 – Yes, 0 – No |
{
"success": true,
"data": {
"response": {
"acknowledgement": "Success",
"data": {
"userId": "126"
},
"error": {
"code": "",
"internal_message": "",
"moreInfo": []
}
}
}
}
| Field | Type | Description | userId | string | User Id |
| Code | Description |
| 1007 | ‘Missing firstName’ |
| 1008 | ‘Invalid firstName’ |
| 1009 | ‘Missing lastName’ |
| 1010 | ‘Invalid lastName’ |
| 1015 | ‘Invalid mobile’ |
| 1016 | ‘Missing city/state/country’ |
| 1017 | ‘Invalid city/state/country’ |
| 1018 | ‘Missing password’ |
| 1019 | ‘Password does not meet the requirements! It must be alphanumeric and atleast 8 characters long’ |
| 1020 | ‘Missing email’ |
| 1021 | ‘Invalid email’ |
| 1022 | ‘Missing mobile’ |
| 1023 | ‘Email address provided already exist. Please provide another email address’ |
| 1024 | ‘Invalid title. It should be Mr, Mrs, Ms, Dr, Prof’ |
| 1028 | ‘Missing sendEmailNotification’ |
| 1029 | ‘Invalid sendEmailNotification’ |
| 1036 | ‘Missing countryCode’ |
| 1037 | ‘Invalid countryCode’ |
| 1038 | ‘Missing timezone’ |
| 1039 | ‘Invalid timezone’ |
| 1040 | ‘Missing language’ |
| 1041 | ‘Invalid language’ |
| 1044 | ‘Missing userCanChoosePassword’ |
| 1045 | ‘Invalid userCanChoosePassword’ |
| 1046 | ‘Missing uniqueId’ |
| 1047 | ‘Invalid uniqueId’ |
| 1048 | ‘Missing roleId’ |
| 1049 | ‘Invalid roleId’ |
| 1052 | ‘Missing reportingTo’ |
| 1053 | ‘Invalid reportingTo’ |
| 1054 | ‘Missing companyName’ |
| 1055 | ‘Invalid companyName’ |
| 1055 | ‘Missing zipCode’ |
| 1056 | ‘Invalid zipCode’ |
For general error details, click here.