Employees

POST

Create Employees

Create a new employee.

Required Permission: Create Employee
POST /employees

Request Body

JSON

    

Request Parameters

Parameter Type Required Validation Description
nameStringRequiredstring, requiredThe name
emailStringOptionalstring, optionalThe email
phoneStringRequiredstring, requiredThe phone
department_idIntegerRequiredinteger, requiredThe department id
date_of_birthDateOptionaldate, optionalThe date of birth
joining_dateDateOptionaldate, optionalThe joining date
salaryDecimalOptionaldecimal, optionalThe salary
present_addressStringOptionalstring, optionalThe present address
permanent_addressStringOptionalstring, optionalThe permanent address
typeIntegerRequiredinteger, requiredThe type
photoFileOptionalfile, optionalThe photo
documentFileOptionalfile, optionalThe document
noteStringOptionalstring, optionalThe note

Response

201 Created
Status Code
HTTP status code (201)
Message
Human-readable description
Data
Created employee details