Update Employee Education
แก้ไขประวัติการศึกษาของพนักงาน
Endpoint
POST /api/v1/open-apis/employee/update-employee-profile?path_action=educationQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path_action | string | Yes | ต้องเป็น education |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
education_id | string | Yes | ID ของประวัติการศึกษาที่ต้องการแก้ไข (Base64 encoded) |
education_year | string | No | ปีที่จบการศึกษา |
education_level_lv | string | No | รหัสระดับการศึกษา (list_of_value) |
education_place | string | No | สถานศึกษา |
education_major | string | No | สาขาวิชา |
education_grade | string | No | เกรดเฉลี่ย |
- พารามิเตอร์
education_idต้องส่งเป็น Base64-encoded string - ฟิลด์ที่ไม่ส่งมา ระบบจะใช้ค่าเดิม
Response Format
Success Response
{
"code": 200,
"message": "Update Education Success",
"payload": {
"education_id": "20260213ABC1234567890",
"employee_id": "20260121FC89F3BB9120",
"education_year": "2020",
"education_level_lv": "03",
"education_place": "มหาวิทยาลัยเกษตรศาสตร์",
"education_major": "วิศวกรรมคอมพิวเตอร์",
"education_grade": "3.75"
}
}Error Response
{
"code": 400,
"message": "Validation failed",
"errors": ["Missing required parameter: 'education_id'"]
}Code Examples
cURL
curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/employee/update-employee-profile?path_action=education" \
-H "Content-Type: application/json" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-d '{
"education_id": "MjAyNjAyMTNBQkMxMjM0NQ==",
"education_grade": "3.75"
}'Related APIs
- List Educations - ดึงรายการประวัติการศึกษาทั้งหมด
- Get Education - ดึงข้อมูลประวัติการศึกษาตาม ID
- Add Education - เพิ่มประวัติการศึกษา
- Delete Education - ลบประวัติการศึกษา
Last updated on