StaffApprove or decline

Approve or decline

Needs: Staff, Read-write

Approves or declines a pending request, like Approve and Decline on the Leave tab. Only pending leave can be decided.

Note: unassigned_shifts is only returned when you approve. unassign_shifts is refused when declining.

curl -X POST "https://app.imploy.com.au/api/integrations/v1/leave/123/status" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -d '{
  "status": "Accepted",
  "unassign_shifts": false
}'
{
  "status": "Accepted",
  "leave": {
    "id": 8,
    "staff_id": 31,
    "staff": "Example Worker",
    "from": "2026-03-02",
    "to": "2026-03-06",
    "days": 5,
    "type": "annual",
    "status": "Accepted",
    "reason": "Family holiday"
  },
  "unassigned_shifts": 0
}
POST
/leave/{id}/status
POST
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
statusstring
Required

Accepted to approve or Rejected to decline.

unassign_shiftsboolean

When approving, also remove the person from their published shifts during the leave. Only use after confirming.

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
statusstring
Required

Accepted to approve or Rejected to decline.

unassign_shiftsboolean

When approving, also remove the person from their published shifts during the leave. Only use after confirming.

Responses

OK