---
title: "Update a leave request"
method: PATCH
path: "/v1/public/leaves/{leaveId}"
tags: ["Public", "Leaves"]
---

# Update a leave request

`PATCH /v1/public/leaves/{leaveId}`

## Path parameters

- `leaveId` string, required

## Request body

- UpdatePublicLeaveRequest
  - `memberId` string — The member (employee) UID to associate to the leave can be empty if the memberCode is set
  - `memberCode` string — The member (employee) code to associate to the leave can be empty if the memberUId is set
  - `bankName` string — The name of the leave bank associated to the leave. Can be empty if bankCode or bankId is set
  - `bankCode` string — The code of the leave bank associated to the leave. Can be empty if bankName or bankId is set
  - `bankId` string — The UID of the leave bank associated to the leave. Can be empty if bankCode or bankName is set.If bankId and bankCode and/or bankName are set, they must all refer to the same bank or else a conflict exception is thrown
  - `fromDate` string — The starting date of the leave. In ISO-8601 format.
  - `toDate` string — The ending date of the leave. In ISO-8601 format.
  - `reason` string — The reason of the leave
  - `timeZone` string
  - `fromAllDay` boolean — When true the leave first day has no specific time range
  - `toAllDay` boolean — When true the leave last day has no specific time range
  - `assignedManagerId` string — The member (a manager) UID who must approve this leave can be empty if the AssignedManagerId is set
  - `assignedManagerCode` string — The member (a manager) UID who must approve this leave can be empty if the AssignedManagerCode is set
  - `hoursToWithdraw` number, required — The total number of hours to withdraw from the employee bank specified by bankName and bankCode
  - `teamId` string — TeamId used to link with integration can be empty. teamId or teamCode can be set to determine team
  - `teamCode` string — TeamCode used to link with integration can be empty. teamId or teamCode can be set to determine team
  - `skillId` string — SkillId used to link with integration can be empty skillId. or skillCode can be set to determine skill
  - `skillCode` string — SkillCode used to link with integration can be empty. skillId or skillCode can be set to determine skill
  - `locationId` string — LocationId used to link with integration can be empty. locationId or locationCode can be set to determine location
  - `locationCode` string — LocationCode used to link with integration can be empty. locationId or locationCode can be set to determine location
  - `managerNote` string, required — this note will be only available for other manager

## Response `200`

- PublicLeave
  - `uid` string, required — unique leave id
  - `status` 'PENDING' | 'DECLINED' | 'APPROVED' | 'PAID', required — The approval status of the leave
  - `bankId` string, required — The UID of the leave bank linked to this leave
  - `bankName` string, required — The name of the leave bank linked to this leave
  - `bankCode` string, required — The code of the leave bank linked to this leave
  - `memberId` string, required — The member (employee) UID linked to this leave
  - `memberCode` string, required — The member (employee) code linked to this leave
  - `memberHourlyWage` number — Contains the member hourly wage specific to the skill of the leave or the member base hourlyWage.
  - `createdAt` string, required — Leave creation date and time. In ISO-8601 format
  - `createdByMemberId` string, required — The member (an employee or manager) UID who created this leave
  - `createdByMemberCode` string, required — The member (an employee or manager) code who created this leave
  - `from` string, required — The starting date of the leave. In ISO-8601 format.
  - `to` string, required — The ending date of the leave. In ISO-8601 format.
  - `fromAllDay` boolean, required — When true the leave first day has no specific time range
  - `toAllDay` boolean, required — When true the leave last day has no specific time range
  - `hoursToWithdraw` number, required — The total number of hours to withdraw from the employee bank specified by bankName, bankCode and bankId
  - `reason` string, required — The reason of the leave
  - `declineReason` string, required — The reason the manager declined the leave
  - `timeZone` string, required — The leave time zone.
  - `assignedManagerId` string, required — The member (a manager) UID who must approve this leave
  - `assignedManagerCode` string, required — The member (a manager) code who must approve this leave
  - `banked` boolean, required — When true the value is banked
  - `bankedAt` string, required — The date at which the hours have been banked. In ISO-8601 format.
  - `teamId` string — The team id linked to this leave
  - `teamCode` string — The team code linked to this leave
  - `skillId` string — The skill (position) id linked to this leave
  - `skillCode` string — The skill (position) code linked to this leave
  - `locationId` string — The location id linked to this leave
  - `locationCode` string — The location code linked to this leave

---

[API](https://skmtc.dev/evolia/apis/public-evolia.md) · [All operations](https://skmtc.dev/evolia/apis/public-evolia/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/evolia/public-evolia/revisions/e6df8fb7bcee/schema)
