Delete Complaint
ลบเอกสารร้องเรียนพนักงานออกจากระบบ พร้อมทั้งลบการแจ้งเตือนและข้อมูลที่เกี่ยวข้องออกให้เรียบร้อย
การลบข้อมูลไม่สามารถกู้คืนได้ กรุณาตรวจสอบให้แน่ใจก่อนดำเนินการ
Endpoint
POST /api/v1/open-apis/complaint/deleteRequest Parameters
Required Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
complaint_id | string (base64) | Yes | ID ของเอกสารร้องเรียนที่ต้องการลบ (Base64 encoded) | MjAyNjAzMzBDTVAwMDAwMDAx |
Request Body Example
{
"complaint_id": "MjAyNjAzMzBDTVAwMDAwMDAx"
}Response Format
Success Response (HTTP 200)
{
"code": 200,
"message": "ลบข้อมูลสำเร็จ",
"payload": [
{
"complaint_id": "20260330CMP00000001",
"complaint_dt": "2026-03-30",
"complaint_desc": "พบเห็นการทุจริตการเบิกจ่ายงบประมาณ",
"complaint_status_lv": "01",
"message": "Deleted successfully"
}
]
}Response Fields
| Field | Type | Description |
|---|---|---|
complaint_id | string | รหัสเอกสารร้องเรียนที่ถูกลบ |
complaint_dt | string | วันที่ร้องเรียน |
complaint_desc | string | รายละเอียดการร้องเรียน |
complaint_status_lv | string | สถานะเอกสารก่อนถูกลบ |
Error Response - Validation Failed (HTTP 422)
{
"code": 422,
"message": "Validation failed",
"errors": [
"'complaint_id' is required"
]
}Error Response - Document Not Found (HTTP 400)
{
"code": 400,
"message": "Failed",
"error": "ไม่พบข้อมูลพนักงานหรือเอกสารนี้ในระบบ"
}Code Examples
cURL
curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/complaint/delete" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"complaint_id": "MjAyNjAzMzBDTVAwMDAwMDAx"
}'Notes
ข้อควรทราบ:
- การลบข้อมูลไม่สามารถกู้คืนได้ กรุณาตรวจสอบให้แน่ใจก่อนดำเนินการลบ
complaint_idต้องส่งเป็น Base64 encoded- เอกสารที่ต้องการลบจะต้องมีอยู่จริงในระบบ
- การแจ้งเตือนที่เกี่ยวข้องกับเอกสารจะถูกลบออกด้วย
Related APIs
- Get List - ตรวจสอบว่ารายการถูกลบออกจากระบบแล้ว
- Submit Complaint - สร้างเอกสารร้องเรียนใหม่
Last updated on