Picture

Create Or Update Employee

Picture

Request Header

Name
Type
Required
Description
Authorization
String
Required
OAuth token obtained after the user has provided consent and the authorized partner calls the /authorization/Connect/Token endpoint to retrieve this token
Content-Type
String
Required
Content type of request payload
Value:
- application/json
Ocp-Apim-Subscription-Key
String
Required

Request Body

Name
Type
Required
Description
staffCode
String
Required
รหัส Staff
email
String
Required
Email
firstname
String
Required
ชื่อ
lastname
String
Required
นามสกุล
nickname
String
Optional
ชื่อเล่น
phoneNumber
String
Optional
เบอร์โทรศัพท์
roleName
String
Required
ชื่อหน้าที่
teamName
String
Required
ชื่อทีม
headCode
String
Optional
รหัสหัวหน้า
isActive
Boolean
Optional
ใช้งานอยู่หรือไม่

Example Request

curl --location --request PUT 'https: //api.veniocrm.com/dev/v1/Employees' \

--header 'Ocp-Apim-Subscription-Key: <Your Subscription-Key>' \

--header 'Authorization: Bearer <Your access_token>' \

--header 'Content-Type: application/json' \

--data-raw '{

    "staffCode": "string",

    "email": "string",

    "firstname": "string",

    "lastname": "string",

    "nickname": "string",

    "phoneNumber": "string",

    "roleName": "string",

    "teamName": "string",

    "headCode": "string",

    "isActive": true

}'

Download postman Collection

Response Codes

HTTP Status Code
Description
200
สร้างหรือแก้ไขข้อมูลพนักงานสำเร็จ
400
ข้อมูลพนักงานไม่ถูกต้อง
401
Unauthorized
403
Forbidden
© Copyright 2021 Gofive Co., Ltd. All right reserved.