Delete Employee Document
ลบเอกสารของพนักงาน
การลบข้อมูลไม่สามารถกู้คืนได้ กรุณาตรวจสอบให้แน่ใจก่อนดำเนินการ
พารามิเตอร์ documents_id ต้องส่งเป็น Base64-encoded string
Endpoint
POST /api/v1/open-apis/employee/delete-employee-profile?path_action=documentQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path_action | string | Yes | ต้องเป็น document |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
documents_id | string | Yes | ID ของเอกสารที่ต้องการลบ (Base64-encoded) |
Response Format
Success Response
{
"code": 200,
"message": "Delete Document Success",
"payload": {
"documents_id": "20260213ABC1234567890",
"deleted": true
}
}Error Response
{
"code": 400,
"message": "Validation failed",
"errors": ["Missing required parameter: documents_id"]
}Code Examples
cURL
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 '{
"documents_id": "MjAyNjAyMTNBQkMxMjM0NQ=="
}'Related APIs
- List Documents - ดึงรายการเอกสารทั้งหมด
- Get Document - ดึงข้อมูลเอกสารตาม ID
- Add Document - เพิ่มเอกสาร
- Update Document - แก้ไขเอกสาร
Last updated on