Authorization: ********************{
"EmployeeRefId": "EMP001",
"WorkinType": 1,
"Latitude": 13.736717,
"Longitude": 100.523186,
"Location": "13.736717,100.523186",
"LocationName": "อาคารตัวอย่าง ชั้น 10",
"UUID": "a1b2c3d4-0000-0000-0000-000000000020",
"Major": "1001",
"Minor": "2001",
"Note": "เข้างานปกติ",
"IsWorkFromHome": false,
"Distance": 12.5,
"DeviceId": "DEVICE-EXAMPLE-0001",
"Attachments": [
{
"AttachmentFilename": "workin-photo.jpg",
"AttachmentURL": "https://cdn.example.com/timestamp/workin-photo.jpg"
}
]
}curl --location 'https://api.gofive.co.th/empeo/api/v1/workin' \
--header 'Ocp-Apim-Subscription-Key: YOUR_SUBSCRIPTION_KEY' \
--header 'x-DeviceId: DEVICE-EXAMPLE-0001' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"EmployeeRefId": "EMP001",
"WorkinType": 1,
"Latitude": 13.736717,
"Longitude": 100.523186,
"Location": "13.736717,100.523186",
"LocationName": "อาคารตัวอย่าง ชั้น 10",
"UUID": "a1b2c3d4-0000-0000-0000-000000000020",
"Major": "1001",
"Minor": "2001",
"Note": "เข้างานปกติ",
"IsWorkFromHome": false,
"Distance": 12.5,
"DeviceId": "DEVICE-EXAMPLE-0001",
"Attachments": [
{
"AttachmentFilename": "workin-photo.jpg",
"AttachmentURL": "https://cdn.example.com/timestamp/workin-photo.jpg"
}
]
}'Data{
"Status": {
"Code": "1000",
"Description": "Success!"
},
"Data": {
"result": true,
"message": "บันทึกเวลาเรียบร้อย",
"message_EN": "Saved successfully."
}
}