Edit time-off record
\<font color="#3b9f0f">post\</font> /api/edit ee time off edits an existing time off record for one staff, using the time off record id this endpoint can be used to approve or reject leave requests request \<font color="#00a2e9">body parameters\</font> ee time off id \<font color="#a7b4c3">integer required\</font> the unique marco identifier for the time off record start date \<font color="#a7b4c3">string required\</font> the start date of the leave request, formatted as yyyy mm dd example 2023 12 31 end date \<font color="#a7b4c3">string required\</font> the end date of the leave request, formatted as yyyy mm dd total days \<font color="#a7b4c3">string required\</font> the total number of days in the leave request notes \<font color="#a7b4c3">string optional\</font> the notes for the time off record typically contains the reason for the leave application reject notes \<font color="#a7b4c3">string \</font> \<font color="#a7b4c3">optional\</font> the rejection notes for the time off record, if rejected decision \<font color="#a7b4c3">string\</font> \<font color="#a7b4c3">optional\</font> the decision for the leave request valid values approve, reject example requests curl x post 'https //api marcopayroll com/api\ benkock8/api/edit ee time off' \\ h 'content type application/json' \\ h 'authorization $auth token' \\ d '{ "ee time off id" "1111", "start date" "2022 10 08", "end date" "2022 10 09", "notes" "stomach\ infection", "reject notes" "", "total days" "2", "decision" "approve" }'import requests url = "https //api marcopayroll com/api\ benkock8/api/edit ee time off" payload={ "ee time off id" "1111", "start date" "2022 10 08", "end date" "2022 10 09", "notes" "stomach\ infection", "reject notes" "", "total days" "2", "decision" "approve" } headers = { "accept" "application/json", "authorization" "your auth token" } response = requests post(url, headers=headers, data=payload) print(response text){ "id" 1111, "user" 55, "customer id" 99, "leave type" 2, "approver" 326, "total days" 2, "start date" "2022 10 08", "end date" "2022 10 09", "notes" "stomach\ infection", "reject notes" "", "decision time" 1666145444364, "decision" "approve", "doc list" \[], "created at" 1665564058831, "updated at" 1666145444364, "deleted at" null, "last modified by" 326 } response (200) id \<font color="#a7b4c3">integer\</font> the unique marco identifier for the staff's time off record user \<font color="#a7b4c3">integer\</font> the unique marco identifier for the staff customer id \<font color="#a7b4c3">integer\</font> the staff's unique identifier in your company's system example 50 leave type \<font color="#a7b4c3">integer\</font> the unique marco identifier for the leave type approver \<font color="#a7b4c3">integer\</font> the unique marco identifier for the approver total days \<font color="#a7b4c3">integer\</font> the total number of days in the leave request start date \<font color="#a7b4c3">string\</font> the start date of the leave request, formatted as yyyy mm dd example 2023 12 31 end date \<font color="#a7b4c3">string\</font> the end date of the leave request, formatted as yyyy mm dd notes \<font color="#a7b4c3">string\</font> the notes for the time off record typically contains the reason for the leave application reject notes \<font color="#a7b4c3">string\</font> the rejection notes for the time off record, if rejected decision time \<font color="#a7b4c3">integer\</font> unix timestamp for the approval decision date decision \<font color="#a7b4c3">string\</font> the decision for the leave request valid values approve, reject doc list \<font color="#a7b4c3">array\[string]\</font> the supporting documents for the leave application created at \<font color="#a7b4c3">integer\</font> unix timestamp for the time off record's creation date updated at \<font color="#a7b4c3">integer\</font> unix timestamp for the time off record's update date deleted at \<font color="#a7b4c3">integer\</font> unix timestamp for the time off record's deletion date last modified by \<font color="#a7b4c3">integer\</font> the unique marco identifier for the user who last modified the leave item details