Edit time off record

When you edit a time off reocrd, you can't change the leave type. And if you want to update the reference docs,

Edit time off record

POST /edit-ee-time-off

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Required
Description

ee_time_off_id

string

Time off record id

start_date

date

Start date of the date range filter, only time-off records after the selected date will be returned

end_date

date

End Date of the date range filter, only time off records after the selected date will be returned

start_date_day_type

string

Format as "Full"/"First Half"/"Second Half"

end_date_day_type

string

Format as "Full"/"First Half"/"Second Half"

notes

string

Time off notes

decision

string

Time off approval decision Format as "Approve" or "Reject"

decision_time

datetime

yyyyMMdd HHmmss

reject_notes

string

If manager reject this time off ,need to fill up rejected notes

unit_type

string

which time off record type do you want to add? Format as: "Hours" or "Days" If it is empty, default as "Days". *1 day = 8 hours

total_hours

float

If unit_type is "Hours", here need to fill up the total hours

files

list of file resource

Time off related files

*If you want to add a hourly time off, the start_date and end_date must to be a same day, and the start_date_day_type and end_date_day_type must to be "Full".

Parameter Example

{
  "ee_time_off_id": 951,
  "start_date": "2024-09-06",
  "end_date": "2024-09-06",
  "start_date_day_type": "Full",
  "end_date_day_type": "Full",
  "notes": "Test",
  "decision": "Approve",
  "decision_time": "2024-09-07",
  "reject_notes": "",
  "unit_type": "Days",
  "total_hours": 0
}

Response

{
    "id": 951,
    "customer_id": 1,
    "leave_type": 101,
    "start_date": "2024-09-06",
    "end_date": "2024-09-06",
    "notes": "Testing",
    "doc_list": [
        {
            "id": 20888,
            "file_name": "New Microsoft Word Document.docx",
            "file_type": "docx",
            "file_url": "https://marcopayroll-production.s3.ap-southeast-1.amazonaws.com/doc/c5f64d44-8154-4a10-9e18-9bcb41fc277c-1728641738778.docx?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAR7OVYMK3MWXZDBXJ%2F20241011%2Fap-southeast-1%2Fs3%2Faws4_request&X-Amz-Date=20241011T101538Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=3463eaa4cbb3d15ad8cd3547feb1d1244db57a76ac7843d71e47f149fcc5bd1e"
        }
    ],
    "approver": 0,
    "decision_time": 1725667200000,
    "decision": "Approve",
    "reject_notes": "",
    "user": 2232,
    "unit_type": "Days",
    "platform_email": "[email protected]"
}

Last updated