> For the complete documentation index, see [llms.txt](https://gitbook.wellexp.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.wellexp.co/api-manual/undefined-1.md). Agents can also search and read this documentation through its [MCP server](https://gitbook.wellexp.co/~gitbook/mcp).

# วิธีแก้ไขรายชื่อของพนักงาน

• เข้าที่ Folder "Employee"\
• เลือก sub folder "update profile"\
• เลือก tab menu "Body"\
• นำ request  มาใส่

```postman_json
{
    "partner_id": "{{partner-id}}",
    "data": [
        {
            "employee_id": 14685,
            "firstname": "Niyomsin",
            "lastname": "API",
            "birthdate": "",
            "email": "Thunyaporn@wellios.co.th",
            "phone": "",
            "join_date": null,
            "resign_date": null,
            "work_status": "active"
        }
    ]
}
```

• นำข้อมูลต่างๆ ที่ต้องการอัพเดท มาใส่\
• กด "Send"

<figure><img src="https://370262940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuB10O1BE5VHQ0rSAzqK4%2Fuploads%2FzhTKIVlCfNQ7wZ3U0ytj%2Fimage.png?alt=media&amp;token=f46a7bcf-6c9d-452c-870c-5d6fcae77f37" alt=""><figcaption></figcaption></figure>

ถ้า อัพเดทบัญชีผู้ใช้งานสำเร็จ จะแสดง Response ดังภาพด้านล่าง

<figure><img src="https://370262940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuB10O1BE5VHQ0rSAzqK4%2Fuploads%2F0hLDFiOwD78a8hIv9w0Y%2Fimage.png?alt=media&amp;token=7a5f9870-b6a7-4ec8-b400-5687d2f3bb54" alt=""><figcaption><p>อัพเดทบัญชีผู้ใช้งานสำเร็จ</p></figcaption></figure>

ถ้า อัพเดทบัญชีผู้ใช้งานไม่สำเร็จ จะแสดง Response ดังภาพด้านล่าง\ <mark style="color:red;">\*\* หากอัพเดทบัญชีไม่สำเร็จอาจเกิดจาก การใส่ข้อมูลผิดพลาดดังนี้</mark> \
&#x20;   <mark style="color:red;">• Employee id ผิดพลาดหรือไม่ตรงกับผู้ใช้งานที่ต้องการอัพเดท</mark>

<figure><img src="https://370262940-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FuB10O1BE5VHQ0rSAzqK4%2Fuploads%2F5iCrLZco8CiyKCiRb67W%2Fimage.png?alt=media&amp;token=d1e5c049-85ea-4505-a4c7-d0d166c4ef7b" alt=""><figcaption><p>อัพเดทบัญชีผู้ใช้งานไม่สำเร็จ</p></figcaption></figure>
