Update Employee Ability
แก้ไขความสามารถพิเศษของพนักงาน
พารามิเตอร์ ability_id ต้องส่งเป็น Base64-encoded string
Endpoint
POST /api/v1/open-apis/employee/update-employee-profile?path_action=save-abilityQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path_action | string | Yes | ใช้ ability หรือ save-ability |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
ability_id | string | Yes | ID ของความสามารถพิเศษที่ต้องการแก้ไข (Base64-encoded) |
ability_list | string | No | รายละเอียดความสามารถพิเศษ |
Response Format
Success Response
{
"code": 200,
"message": "Update Ability Success",
"payload": {
"ability_id": "20260121AB01C2D3E4F5",
"ability_list": "ใช้โปรแกรม Microsoft Office และ Adobe Creative Suite ได้ดี"
}
}Error Response
{
"code": 400,
"message": "Validation failed",
"errors": ["Missing required parameter: ability_id"]
}Code Examples
cURL
curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/employee/update-employee-profile?path_action=save-ability" \
-H "Content-Type: application/json" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-d '{
"ability_id": "MjAyNjAxMjFBQjAxQzJEM0U0RjU=",
"ability_list": "ใช้โปรแกรม Microsoft Office และ Adobe Creative Suite ได้ดี"
}'Related APIs
- List Abilities - ดึงรายการความสามารถพิเศษทั้งหมด
- Get Ability - ดึงข้อมูลความสามารถพิเศษตาม ID
- Add Ability - เพิ่มความสามารถพิเศษ
- Delete Ability - ลบความสามารถพิเศษ
Last updated on