A leave-request-decision represents the decision of management regarding the status of a leave-request. The approver may either approve the request, or deny it. In the latter case, the leave-request is marked as rejected, and no further decisions are required. Otherwise, other managers approval may be asked, leading to futher decisions.

The type property indicates whether the decision is an "approval" or a "denial".

An extra comment property is required in the case of a denial.

Note: this decision-making process is sequential: no two managers may be expected to approve a leave-requeest at the same time.

type
enum<string>
required

leave-request-approval-decision indicates this is an approval.

Available options:
leave-request-approval-decision
leaveRequest
object
required

The leave-request to approve.

Example:
{
  "id": "123",
  "type": "leave-request",
  "url": "https://example.ilucca.net/lucca-api/leave-requests/123"
}
id
string
url
string
createdAt
string

Read-only. UTC timestamp of the moment this object was created.

Example:

"2023-01-23T12:45:23.1234Z"

Was this page helpful?