Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Delete Employee Hospital

ลบโรงพยาบาลตามสิทธิของพนักงาน

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

Endpoint

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

Query Parameters

ParameterTypeRequiredDescription
path_actionstringYesต้องเป็น hospital

Request Body

ParameterTypeRequiredDescription
employee_hospital_idstringYesID ของโรงพยาบาลตามสิทธิที่ต้องการลบ (ต้อง 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

FieldTypeDescription
employee_hospital_idstringID ของโรงพยาบาลที่ลบ (Plain text)
deletedbooleanสถานะการลบ (true = ลบสำเร็จ)

Error Response

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

Code Examples

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=" }'

  • List Hospitals - ดึงรายการโรงพยาบาลตามสิทธิทั้งหมด
  • Get Hospital - ดึงข้อมูลโรงพยาบาลตามสิทธิตาม ID
  • Add Hospital - เพิ่มโรงพยาบาลตามสิทธิ
  • Update Hospital - แก้ไขโรงพยาบาลตามสิทธิ
Last updated on