Creating Users

To create a User, call the Create User endpoint and specify the following required parameters in the request body:

MemberDescriptionRemarks
firstNameFirst name of the User.
designationDesignation of the User.To retrieve a list of all existing Designations, use the Get all Designations endpoint.
categoryCategory of the user.Valid values: Regular or Adhoc.
primaryMobile: countryCode3-4 character standard country code of the primary mobile number for the User.
primaryMobile: numberThe primary mobile number.
employmentTypeType 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"
}