Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Delete Employee Family

ลบข้อมูลสมาชิกครอบครัวของพนักงาน

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

Endpoint

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

Query Parameters

ParameterTypeRequiredDescription
path_actionstringYesต้องเป็น delete-family

Request Body

ParameterTypeRequiredDescription
employee_family_idstringYesID ของข้อมูลครอบครัวที่ต้องการลบ (Base64 encoded)

พารามิเตอร์ employee_family_id ต้องส่งเป็น Base64-encoded string


Response Format

Success Response

{ "code": 200, "message": "Delete Family Success", "payload": { "employee_family_id": "2026021378C0296960FC", "deleted": true } }

Error Response

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

Code Examples

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

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