Delete Employee Family
ลบข้อมูลสมาชิกครอบครัวของพนักงาน
การลบเป็นการลบถาวร ไม่สามารถกู้คืนได้ กรุณาตรวจสอบให้แน่ใจก่อนดำเนินการ
Endpoint
POST /api/v1/open-apis/employee/delete-employee-profile?path_action=delete-familyQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path_action | string | Yes | ต้องเป็น delete-family |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
employee_family_id | string | Yes | ID ของข้อมูลครอบครัวที่ต้องการลบ (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
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="
}'Related APIs
- List Family Members - ดึงรายการข้อมูลครอบครัวทั้งหมด
- Get Family - ดึงข้อมูลครอบครัวตาม ID
- Add Family - เพิ่มข้อมูลครอบครัว
- Update Family - แก้ไขข้อมูลครอบครัว
Last updated on