A leave-request is the resource that represents the state of the approval process of one or more leave resources. You can only create leave-requests containing a single leave through the Lucca API, but when created through the app, you can expect a 1-N relationship between leave-requests and leaves.
The leave-request status attribute indicates the final result in regards to the approval process.
Approval is the result of the decision-making process of one or more employees. The list of expected decision-makers is determined by the application settings.
Each expected approver makes his/her decision, which results in the creation of a leave- request-decision resource.
Describes the status of the request in regard to the approval process.
pending: Request has not yet been approved by all expected decision-makers.approved: Request has been approved.denied: Request has been denied through a denial decision.
pending, approved, rejected List of leaves this leave-request contains. Usually, a single one.
1Read-only. UTC timestamp of the moment this object was created.
"2023-01-23T12:45:23.1234Z"
Read-only. UTC timestamp of the moment this object was last updated. Set upon creation, update or deletion of the object.
"2023-01-23T12:45:23.1234Z"
Unique identifier of this leave-request.
"leave-request"Reference to an employee resource.
Employee who is expected to take a decision regarding this leave-request. Reference to an employee resource.