Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Delete Employee Training

ลบประวัติการฝึกอบรมของพนักงาน

employee_training_id ต้องส่งเป็น Base64-encoded string เฉพาะข้อมูลที่ training_log_type = 'Manual' และไม่มี training_master_id หรือ import_log_id เท่านั้นที่สามารถลบได้

Endpoint

POST /api/v1/open-apis/employee/delete-employee-profile?path_action=training

Query Parameters

ParameterTypeRequiredDescription
path_actionstringYesต้องเป็น training
language_codestringNoภาษา (TH / EN)

Request Body

ParameterTypeRequiredDescription
employee_training_idstringYesID ของประวัติการฝึกอบรม (Base64 encoded)

Response Format

Success Response

{ "code": 200, "message": "Delete Training Success", "payload": { "employee_training_id": "20260215A1B2C3D4E5F6", "deleted": true } }

Error Response

{ "code": 400, "message": "ไม่สำเร็จ", "error": "Cannot delete training record linked to Training Master or Import" }

Code Examples

curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/employee/delete-employee-profile?path_action=training&language_code=TH" \ -H "Content-Type: application/json" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \ -d '{ "employee_training_id": "MjAyNjAyMTVBMUIyQzNENEU1RjY=" }'

  • List Trainings - ดึงรายการประวัติการฝึกอบรมทั้งหมด
  • Get Training - ดึงข้อมูลการฝึกอบรมตาม ID
  • Add Training - เพิ่มประวัติการฝึกอบรม
  • Update Training - แก้ไขประวัติการฝึกอบรม
Last updated on