Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Delete Employee Profile

Router สำหรับลบข้อมูลส่วนตัวพนักงาน รองรับการเรียกใช้งานแบบแยกเรื่องผ่าน path_action parameter

การลบข้อมูลไม่สามารถกู้คืนได้ กรุณาตรวจสอบให้แน่ใจก่อนดำเนินการ

Endpoint

POST /api/v1/open-apis/employee/delete-employee-profile

Query Parameters

ParameterTypeRequiredDescription
path_actionstringYesประเภทข้อมูลที่ต้องการลบ

Base Parameters

ParameterTypeRequiredDescription
employee_codestringYesรหัสพนักงาน

ใช้ employee_code เพื่อระบุพนักงาน

พารามิเตอร์ที่ลงท้ายด้วย _id ต้องส่งเป็น Base64-encoded ของ raw internal ID

  • Response จะ return raw string ID (เช่น 20260121FC89F3BB9120)
  • เมื่อนำ ID จาก response ไปใช้ใน request ถัดไป ต้อง encode เป็น Base64 ก่อน

Supported Actions

path_actionDescriptionRequired ID
familyลบข้อมูลครอบครัวemployee_family_id
workลบประวัติการทำงานemployee_work_id
educationลบประวัติการศึกษาemployee_education_id
abilityลบความสามารถพิเศษemployee_ability_id
language-skillลบทักษะภาษาemployee_language_skill_id
typing-skillลบทักษะพิมพ์ดีดemployee_typing_skill_id
driving-skillลบทักษะการขับขี่employee_driving_skill_id
trainingลบประวัติการฝึกอบรมemployee_training_id
possessลบทรัพย์สินครอบครองemployee_possess_id
possess-imageลบรูปภาพทรัพย์สินemployee_possess_image_id
hospitalลบโรงพยาบาลตามสิทธิemployee_hospital_id
documentลบเอกสารemployee_documents_id

Response Format

Success Response

{ "code": 200, "message": "Delete Success", "payload": { "deleted_id": "20260121FM01B2C3D4E5" } }

Error Response

{ "code": 400, "message": "ข้อมูลไม่ถูกต้อง", "errors": [ "กรุณาระบุ 'employee_family_id'" ] }

Code Examples

# ลบข้อมูลครอบครัว curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/employee/delete-employee-profile?path_action=family" \ -H "Content-Type: application/json" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \ -d '{ "employee_code": "EMP001", "employee_family_id": "MjAyNjAxMjFGTTAxQjJDM0Q0RTU=" }' # ลบประวัติการศึกษา curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/employee/delete-employee-profile?path_action=education" \ -H "Content-Type: application/json" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \ -d '{ "employee_code": "EMP001", "employee_education_id": "MjAyNjAxMjFFRDAxQTJCM0M0RDU=" }' # ลบเอกสาร curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/employee/delete-employee-profile?path_action=document" \ -H "Content-Type: application/json" \ -H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \ -d '{ "employee_code": "EMP001", "employee_documents_id": "MjAyNjAxMjFEQzAxRTJGM0E0QjU=" }'

Last updated on