Update, approve or reject an absence request
jethr_update_absence_requestChange a presence/absence request: dates, hours, note, or its status (APPROVED, REJECTED, PENDING; give rejection_reason when rejecting). WRITES to the company's HR records; approving or rejecting is visible to the employee, and send_notification=true notifies the people involved (default false; needs confirm_notification=true). Only the fields you pass change. PATCH /public-api/v1/presence-absence-requests/{uuid}/.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Request uuid (from jethr_list_absence_requests). | |
| puc | No | Sickness only: the PUC protocol number. | |
| note | No | New note. | |
| status | No | New status. | |
| end_date | No | New last day (yyyy-mm-dd); null clears it. | |
| start_date | No | New first day (yyyy-mm-dd); null clears it. | |
| start_time | No | New start time HH:MM, hourly requests only; null clears it. | |
| assisted_ssn | No | Fiscal code of the assisted person (kinds that need it, e.g. Law 104 leave). | |
| time_duration | No | New duration HH:MM, hourly requests only; null clears it. | |
| rejection_reason | No | Reason shown to the employee when status is REJECTED. | |
| send_notification | No | Notify the people involved (default false); needs confirm_notification=true. | |
| confirm_notification | No | Must be true when send_notification is true: the user approved that Jet HR notifies the people involved. | |
| donor_transfusion_center_ssn | No | Donor leave only: fiscal code of the transfusion center. |