Admin to create single user for an organisation

This api is for Admin to create single user for an organisation


REST


Headers

FieldsTypeDescriptionExampleO/MData Management
URLstring/v1/employeesM
METHODstringPOSTM
content-typestringJSONapplication/jsonM
x-access-tokenstringSession token with validitytokenM

Request

{
           "first_name":"amal",
           "last_name":"rag",
           "gender": "male",
           "email": "amalrag@test.com",
           "mobile": "+919747342495",
           "employee_id":"843778",
}


Success

{
   "kyc": [],
   "_id": "6010fc661616b7418ea5f99a",
   "first_name": "amal",
   "last_name": "rag",
   "gender": "male",
   "email": "amalrag@test.com",
   "mobile": "+919747342495",
   "employee_id": "843778",
   "company": "5fbcb4821ffc64855233b1b1",
   "entityId": "6010fc661616b7418ea5f99a",
   "user": "6010fc661616b7267da5f999",
   "__v": 0
}


Error

{
    "error": "message"
}


"mobile" - it is the responsibility of the client to always send country code with the mobile number, server will not perform any checks "company" : id of the company to be associated with this employee