Admin to create single user for an organisation
This api is for Admin to create single user for an organisation
REST
Headers
Fields | Type | Description | Example | O/M | Data Management |
---|---|---|---|---|---|
URL | string | /v1/employees | M | ||
METHOD | string | POST | M | ||
content-type | string | JSON | application/json | M | |
x-access-token | string | Session token with validity | token | M |
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