Skip to main content

Update a leave request

PUT 

/leave_requests/:id_item

Update a leave request by its internal ID.

Required abilities

Users can update their own leave requests.

You can only modify another user's leave request if you are a "leave approver" for them. Generally, that means being in their designated Time Approver list.

As with all PUT modifications, you must include the If-Match header with the current ETag value of the user record or the request will fail with a "412 Precondition Failed" status code. The ETag value can be obtained by retrieving the item with a GET request and examining the ETag header in the response.

Note that you cannot use this endpoint to approve or decline a leave request. Instead, you can change the approval status of a Leave Request by POSTing to the /api/v1/leave_requests/approve/{id} or /api/v1/leave_requests/decline/{id} endpoints.

Request

Responses

The object was successfully updated. The response body is empty. See the Location header for the URL of the updated object.

Response Headers
    Location

    The URL of the updated or modified object.