Add Employee Typing Skill
เพิ่มทักษะพิมพ์ดีดของพนักงาน
Endpoint
POST /api/v1/open-apis/employee/add-employee-profile?path_action=typing-skillQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
path_action | string | Yes | ต้องเป็น typing-skill |
language_code | string | No | ภาษา (TH / EN) |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
employee_code | string | Yes | รหัสพนักงาน |
language_name | string | Yes | ภาษาที่พิมพ์ (เช่น ไทย, อังกฤษ) |
typing_speed | string | No | ความเร็ว (คำ/นาที) |
Response Format
Success Response
{
"code": 200,
"message": "Add Typing Skill Success",
"payload": {
"employee_typing_skill_id": "20260121TS01E2F3A4B5",
"employee_id": "20260121EM01A2B3C4D5",
"language_name": "ไทย",
"typing_speed": "45"
}
}Error Response
{
"code": 400,
"message": "ไม่สำเร็จ",
"error": "Validation failed",
"errors": [
"Missing required parameter: 'employee_code'",
"Missing required parameter: 'language_name'"
]
}Validation Rules
| Field | Rule |
|---|---|
employee_code | ต้องระบุและต้องมีพนักงานในระบบ |
language_name | ต้องระบุและไม่เป็นค่าว่าง |
Code Examples
cURL
curl -X POST "https://openapi.humansoft.co.th/api/v1/open-apis/employee/add-employee-profile?path_action=typing-skill" \
-H "Content-Type: application/json" \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-d '{
"employee_code": "EMP001",
"language_name": "ไทย",
"typing_speed": "45"
}'Related APIs
- List Typing Skills - ดึงรายการทักษะการพิมพ์ทั้งหมด
- Get Typing Skill - ดึงข้อมูลทักษะการพิมพ์ตาม ID
- Update Typing Skill - แก้ไขทักษะการพิมพ์
- Delete Typing Skill - ลบทักษะการพิมพ์
Last updated on