Api subscription key get from the OpenAPI integration setting page
Example:
{{subscription_key}}
Body Params application/json
CompanyName
string
required
Company name of employees
FromEmployeeRefId
string
required
EmployeeNo of requester
ToEmployeeRefId
string
required
EmployeeNo of target employee
DateSwapFrom
string
required
Original shift date of requester to be swapped out
DateSwapTo
string
required
Target shift date to be taken from the other employee
Description
string
required
Example
{"CompanyName":"Gofive","FromEmployeeRefId":"EMP001","ToEmployeeRefId":"EMP002","DateSwapFrom":"2025-06-12","DateSwapTo":"2025-06-20","Description":"Requesting shift swap due to a personal emergency."}
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/swap-shifts' \
--header'Authorization: ' \
--header'Ocp-Apim-Subscription-Key: ' \
--header'Content-Type: application/json' \
--data-raw'{
"CompanyName": "Gofive",
"FromEmployeeRefId": "EMP001",
"ToEmployeeRefId": "EMP002",
"DateSwapFrom": "2025-06-12",
"DateSwapTo": "2025-06-20",
"Description": "Requesting shift swap due to a personal emergency."
}'