Employees
POST
Create Employees
Create a new employee.
Required Permission:
Create Employee
POST
/employees
Request Body
JSONRequest Parameters
| Parameter | Type | Required | Validation | Description |
|---|---|---|---|---|
| name | String | Required | string, required | The name |
| String | Optional | string, optional | The email | |
| phone | String | Required | string, required | The phone |
| department_id | Integer | Required | integer, required | The department id |
| date_of_birth | Date | Optional | date, optional | The date of birth |
| joining_date | Date | Optional | date, optional | The joining date |
| salary | Decimal | Optional | decimal, optional | The salary |
| present_address | String | Optional | string, optional | The present address |
| permanent_address | String | Optional | string, optional | The permanent address |
| type | Integer | Required | integer, required | The type |
| photo | File | Optional | file, optional | The photo |
| document | File | Optional | file, optional | The document |
| note | String | Optional | string, optional | The note |
Response
201 CreatedStatus Code
HTTP status code (201)
Message
Human-readable description
Data
Created employee details