Creating Users
To create a User, call the Create User endpoint and specify the following required parameters in the request body:
Member | Description | Remarks |
---|---|---|
firstName | First name of the User. | |
designation | Designation of the User. | To retrieve a list of all existing Designations, use the Get all Designations endpoint. |
category | Category of the user. | Valid values: Regular or Adhoc. |
primaryMobile : countryCode | 3-4 character standard country code of the primary mobile number for the User. | |
primaryMobile : number | The primary mobile number. | |
employmentType | Type of employment. | Valid Values: Full-time, Part-time, Contract, or N/A. |
Request bodies are specified in JSON format. The following example request body shows how to create a new User:
{
"firstName": "UserF",
"middleName": "UserM",
"lastName": "UserL",
"email": "[email protected]",
"designation": "Field-Executive",
"category": "Regular",
"employmentType": "Full-time",
"workLocations": [
"facilities:1238-232-dsfs23-sdsdc"
],
"manager": "string",
"primaryMobile": {
"countryCode": "91",
"number": "9812345678"
},
"secondaryMobile": {
"countryCode": "91",
"number": "9812345678"
},
"identification": {
"idType": "Adhar Card",
"validIdNumber": "ABCDE12345"
},
"subFunction": "FE",
"fileID": "file:1238-232-dsfs23-sdsdc"
}
Updated 4 days ago