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=trainingQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path_action | string | Yes | ต้องเป็น training |
language_code | string | No | ภาษา (TH / EN) |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
employee_training_id | string | Yes | ID ของประวัติการฝึกอบรม (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
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="
}'Related APIs
- List Trainings - ดึงรายการประวัติการฝึกอบรมทั้งหมด
- Get Training - ดึงข้อมูลการฝึกอบรมตาม ID
- Add Training - เพิ่มประวัติการฝึกอบรม
- Update Training - แก้ไขประวัติการฝึกอบรม
Last updated on