Codelayer API Documentation

  • Introduction

    • General
    • Version History
  • API Reference

    • System

      • License request
      • Register Device
      • Authentication
      • Settings
    • HR Details

      • Employee Attendance
      • Employee Leave Summary
      • Employee List
      • Employee Payrevision
      • Employee Payroll
      • Employee Relieving
      • Employee TDS Calculated
      • Employee TDS Deducted
      • Employee Transfer
      • Employees Edited
    • Estate

      • Labor

        • Details
        • Register Face
      • Sync

        • Download Face File
        • Get Labor
        • Get Tasks
        • Post Muster
      • Authentication
      • Firm List
    • FrontOffice Poabs

      • Gatepass Save
    • Response Codes
Codelayer API Documentation
Register Face

Upload Face photos for the labor. Note: The face zip file is replaced on updation.

URL

estate/labor/register/face

Method

POST

Request Media type

multipart/form-data

Response Media type

application/json

Request Parameters
Parameter Data Type Min Max M/O Sample Value Comments
key String 32 32 M 65sNrHRAfxb1ybLq6eccRFH3ZwFfytdl Key obtained from authentiaction.
lcode String 2 15 M R399 Labor Code received from estate/labor/details
labor_face File 2000000 M labor_face.zip The Face Image file

 

Response Values
Name Data Type Min Length Max Length M/O Sample Value Comments
status String 17 25 M Resource updated. Updation status

 

Sample Request
Content-Type: multipart/form-data; boundary=--------------------------699587478456529932375973
Content-Length: 48212

----------------------------699587478456529932375973
Content-Disposition: form-data; name="key"

QH7LlQ3wQMK9oYEKjeG5QOIVJQT4emeq
----------------------------699587478456529932375973
Content-Disposition: form-data; name="lcode"

R399
----------------------------699587478456529932375973
Content-Disposition: form-data; name="labor_face"

labor_face.zip
----------------------------699587478456529932375973--
Sample Success Response
{
    "status": "Resource updated.",
    "e": 200,
    "msg": "Success"
}
Sample Failure Responses
{
    "e": 405,
    "msg": "Invalid File type."
}