Skip to Content
🚀 Welcome to Humansoft Open API Documentation

Delete Quota

ลบโควตาการลาตาม ID ที่ระบุ

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

Endpoint

POST /api/v1/open-apis/salary/delete-data-filter

Request Body

ParameterTypeRequiredDescriptionExample
path_actionstringYesต้องเป็น delete_quota"delete_quota"
quota_idstringYesรหัสโควตา (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

FieldTypeDescription
quota_idstringID โควตาที่ลบ (plain text)
deletedbooleanสถานะการลบ (true = สำเร็จ)
deleted_atstringวันเวลาที่ลบ (YYYY-MM-DD HH:mm:ss)

Error Response

{ "code": 404, "message": "Quota not found", "payload": [] }

Code Examples

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

  • Get Quota by ID - ดูรายละเอียดโควตาก่อนลบ
  • List Quotas - ดูรายการโควตาทั้งหมด
  • Save Quota - สร้างโควตาใหม่
Last updated on