Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Add Employee Driving Skill

เพิ่มทักษะการขับขี่ของพนักงาน

Endpoint

POST /api/v1/open-apis/employee/add-employee-profile?path_action=driving-skill

Query Parameters

ParameterTypeRequiredDescription
path_actionstringYesต้องเป็น driving-skill

Request Body

ParameterTypeRequiredDescription
employee_codestringYesรหัสพนักงาน
vehicle_namestringYesประเภทยานพาหนะ (เช่น รถยนต์, รถจักรยานยนต์, รถบรรทุก, รถโฟล์คลิฟท์)
skill_levelstringNoได้/ไม่ได้ (Y = ได้, N = ไม่ได้)
certificate_nostringNoเลขที่ใบอนุญาตขับขี่
certificate_effective_dtstringNoวันเริ่มมีผลใบอนุญาต (YYYY-MM-DD)
certificate_expire_dtstringNoวันหมดอายุใบอนุญาต (YYYY-MM-DD)

Response Format

Success Response

{ "code": 200, "message": "Add Driving Skill Success", "payload": { "employee_driving_skill_id": "20260121DS01F2A3B4C5", "employee_id": "20260121EM01A2B3C4D5", "vehicle_name": "รถยนต์", "skill_level": "Y", "certificate_no": "12345678", "certificate_expire_dt": "2030-12-31" } }

Error Response

{ "code": 400, "message": "Validation failed", "errors": [ "Missing required parameter: 'employee_code'", "Missing required parameter: 'vehicle_name'" ] }

Validation Rules

FieldRule
employee_codeต้องระบุและต้องมีพนักงานในระบบ
vehicle_nameต้องระบุและต้องไม่เป็นค่าว่าง

Code Examples

curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/employee/add-employee-profile?path_action=driving-skill" \ -H "Content-Type: application/json" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \ -d '{ "employee_code": "EMP001", "vehicle_name": "รถยนต์", "skill_level": "Y", "certificate_no": "12345678", "certificate_expire_dt": "2030-12-31" }'

Notes

  • สามารถเพิ่มทักษะการขับขี่ได้หลายรายการต่อพนักงาน
  • แต่ละรายการจะมี employee_driving_skill_id แยกกัน
  • Endpoint นี้ใช้ employee_code (ไม่ต้อง encode Base64)

Last updated on