Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Employee
  • Authentication API
    • Authorization
      POST
  • Employee
    • Get Employee
      GET
    • Update Employee
      PUT
    • Get List Employees
      GET
    • Get Employees List
      GET
    • Get Mastertypes List
      GET
    • Get Name Prefixes
      GET
    • Get Document Types
      GET
    • Update Employee
      POST
    • Add Employee Attachment
      POST
    • Update Employee Address
      POST
    • Update Employee Family
      POST
    • Update Employee Information
      POST
    • Update Employee Shifts
      POST
    • Update Employee Contact
      POST
    • Update Employee Education
      POST
    • Update Employee Experience
      POST
    • Update Employee CustomField
      POST
    • Delete Employee
      POST
    • Get Employee Shifts
      GET
    • Get Employee Role
      GET
    • Get Employee Movement Lists
      GET
  • Leave
    • Get Employee Documents
      POST
  • Master
    • Get Organizations
      GET
    • Get CustomField
      GET
    • Get Holiday
      GET
    • Get MasterSetup
      GET
    • Get Shift Details
      GET
  • Payroll
    • Create Loan
    • Get Loan (Draft)
    • Get Cost Center
    • Get Financial Transactions
    • Update Financial Transactions
  • Attendance
    • Get Time Attendance
    • Get Time Attendances Lite
  • Welfare
    • Get Shuttle Buses
    • Get Passengers
  • Time
    • Workin
    • Get Employee WorkIn Site
    • Get Timestamps
    • Get TimeStamp Attachments
    • Get Workin Sites
    • Get IOMO Logs
    • Add Timestamps
  • AppMan
    • Update status criminal checker
    • Send Email Notification when completed
  • Asset
    • Get Asset list
    • Update Asset
    • Get Employee Assets
  • Recruitment
    • Get Candidate
  1. Employee

Update Employee Shifts

Developing
POST
https://api.gofive.co.th/empeo/api/v1/employees/shifts

Request

Header Params
Content-Type
string 
required
Accepted value: application/json
Example:
application/json
Ocp-Apim-Subscription-Key
string 
required
Api subscription key get from the OpenAPI integration setting page
Example:
WPe123a9RKbcfLQNSztr45
Authorization
string 
required
Authorization credential utilized in API requests
Example:
bearer {token}
Body Params application/json
array of:
employeeRefId
string 
required
Employee no
CompanyName
string 
required
Employee company name
shiftCode
string 
required
Shift code that want to assign to employee
DateFrom
string 
required
Date when an employee's shift is scheduled to begin
DateTo
string 
optional
Date when an employee's shift is scheduled to end (Optional)
Example
[
  {
    "employeeRefId": "I0006",
    "companyName": "Accendio Solutions Ltd.",
    "shiftCode": "IVE",
    "DateFrom": "2024-09-02T12:00:00.000+07:00",
    "DateTo": "2024-09-13T12:00:00.000+07:00"
  },
  {
    "employeeRefId": "I0003",
    "companyName": "Accendio Solutions Ltd.",
    "shiftCode": "IVE",
    "DateFrom": "2024-09-15T12:00:00.000+07:00"
  },
  {
    "employeeRefId": "I0006",
    "companyName": "Accendio Solutions Ltd.",
    "shiftCode": "S1",
    "DateFrom": "2024-09-14T12:00:00.000+07:00"
  }
]

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.gofive.co.th/empeo/api/v1/employees/shifts' \
--header 'Ocp-Apim-Subscription-Key: WPe123a9RKbcfLQNSztr45' \
--header 'Authorization: bearer {token}' \
--header 'Content-Type: application/json' \
--data-raw '[
    {
        "employeeRefId": "I0006",
        "companyName": "Accendio Solutions Ltd.",
        "shiftCode": "IVE",
        "DateFrom": "2024-09-02T12:00:00.000+07:00",
        "DateTo": "2024-09-13T12:00:00.000+07:00"
    },
    {
        "employeeRefId": "I0003",
        "companyName": "Accendio Solutions Ltd.",
        "shiftCode": "IVE",
        "DateFrom": "2024-09-15T12:00:00.000+07:00"
    },
    {
        "employeeRefId": "I0006",
        "companyName": "Accendio Solutions Ltd.",
        "shiftCode": "S1",
        "DateFrom": "2024-09-14T12:00:00.000+07:00"
    }
]'

Responses

🟢200Success
application/json
Body
statusCode
integer 
required
Response status code
message
string 
required
Response message
Example
{
  "statusCode": 200,
  "message": "บันทึกสำเร็จ"
}
🟠400Bad Request
🟠401User authentication required V2.
Previous
Update Employee Information
Next
Update Employee Contact
Built with