StaffEdit leave

Edit leave

Needs: Staff, Read-write

Edits a leave request's dates, type or reason. Send only what changes. The status is unchanged. A start date already in the past only blocks the edit when you change the dates.

curl -X PATCH "https://app.imploy.com.au/api/integrations/v1/leave/123" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "to": "2026-03-09"
}'
{
  "updated": [
    "to"
  ],
  "leave": {
    "id": 8,
    "staff_id": 31,
    "staff": "Example Worker",
    "from": "2026-03-02",
    "to": "2026-03-09",
    "days": 8,
    "type": "annual",
    "status": "Pending",
    "reason": "Family holiday"
  }
}
PATCH
/leave/{id}
PATCH
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.
Content-Typestring
Required

The media type of the request body

Options: application/json
fromstring

YYYY-MM-DD, today or later.

tostring

YYYY-MM-DD.

typestring

annual, sick or personal.

reasonstring

Up to 500 characters.

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. An organisation access token that starts with imp_at_. Send it as Authorization: Bearer imp_at_XXXX.

Path Parameters

idinteger
Required

The leave id.

Body

application/json
fromstring

YYYY-MM-DD, today or later.

tostring

YYYY-MM-DD.

typestring

annual, sick or personal.

reasonstring

Up to 500 characters.

Responses

OK