Delete Employee Hospital
ลบโรงพยาบาลตามสิทธิของพนักงาน
การลบข้อมูลไม่สามารถกู้คืนได้ กรุณาตรวจสอบให้แน่ใจก่อนดำเนินการ
Endpoint
POST /api/v1/open-apis/employee/delete-employee-profile?path_action=hospitalQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path_action | string | Yes | ต้องเป็น hospital |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
employee_hospital_id | string | Yes | ID ของโรงพยาบาลตามสิทธิที่ต้องการลบ (ต้อง encode Base64) |
พารามิเตอร์ employee_hospital_id ต้อง encode เป็น Base64 ก่อนส่ง Response field employee_hospital_id จะเป็น Plain text ไม่ได้ encode Base64
Response Format
Success Response
{
"code": 200,
"message": "Delete Hospital Success",
"payload": {
"employee_hospital_id": "20260121HP01D2E3F4A5",
"deleted": true
}
}Response Fields
| Field | Type | Description |
|---|---|---|
employee_hospital_id | string | ID ของโรงพยาบาลที่ลบ (Plain text) |
deleted | boolean | สถานะการลบ (true = ลบสำเร็จ) |
Error Response
{
"code": 400,
"message": "Validation failed",
"errors": ["Missing required parameter: 'employee_hospital_id'"]
}Code Examples
cURL
curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/employee/delete-employee-profile?path_action=hospital" \
-H "Content-Type: application/json" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-d '{
"employee_hospital_id": "MjAyNjAxMjFIUDAxRDJFM0Y0QTU="
}'Related APIs
- List Hospitals - ดึงรายการโรงพยาบาลตามสิทธิทั้งหมด
- Get Hospital - ดึงข้อมูลโรงพยาบาลตามสิทธิตาม ID
- Add Hospital - เพิ่มโรงพยาบาลตามสิทธิ
- Update Hospital - แก้ไขโรงพยาบาลตามสิทธิ
Last updated on