Delete Quota
ลบโควตาการลาตาม ID ที่ระบุ
การลบโควตาไม่สามารถกู้คืนได้ กรุณาตรวจสอบข้อมูลให้ถูกต้องก่อนดำเนินการ
Endpoint
POST /api/v1/open-apis/salary/delete-data-filterRequest Body
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
path_action | string | Yes | ต้องเป็น delete_quota | "delete_quota" |
quota_id | string | Yes | รหัสโควตา (Base64 encoded) | "MjAyNjAxMDFBQkMxMjM0NTY3ODk=" |
Response Format
Success Response
{
"code": 200,
"message": "สำเร็จ",
"payload": {
"quota_id": "20260101ABC123456789",
"deleted": true,
"deleted_at": "2026-02-20 15:00:00"
}
}Response Fields
| Field | Type | Description |
|---|---|---|
quota_id | string | ID โควตาที่ลบ (plain text) |
deleted | boolean | สถานะการลบ (true = สำเร็จ) |
deleted_at | string | วันเวลาที่ลบ (YYYY-MM-DD HH:mm:ss) |
Error Response
{
"code": 404,
"message": "Quota not found",
"payload": []
}Code Examples
cURL
curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/salary/delete-data-filter" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"path_action": "delete_quota",
"quota_id": "MjAyNjAxMDFBQkMxMjM0NTY3ODk="
}'Notes
- ใช้ Get Quota by ID หรือ List Quotas เพื่อดู quota_id ก่อนลบ
quota_idใน request ต้องเข้ารหัส Base64
Related APIs
- Get Quota by ID - ดูรายละเอียดโควตาก่อนลบ
- List Quotas - ดูรายการโควตาทั้งหมด
- Save Quota - สร้างโควตาใหม่
Last updated on