PUT
/
employer
/
time-off-events
/
{time-off-event-id}
Update Time-Off Event
curl --request PUT \
  --url https://api.tryfinch.com/employer/time-off-events/{time-off-event-id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'Finch-API-Version: <finch-api-version>' \
  --data '{
  "status": "approved",
  "event_type": "vacation",
  "start_date": "2024-08-15T00:00:00",
  "end_date": "2024-08-19T23:59:59"
}'
{
  "time_off_event_id": "e1f2a3b4-c5d6-7e8f-9a0b-1c2d3e4f5a6b",
  "job_id": "a1b2c3d4-e5f6-7a8b-9c0d-1e2f3a4b5c6d"
}

Authorizations

Authorization
string
header
required

Please use your Access Token

Headers

Finch-API-Version
string
default:2020-09-17
required

Header used to specify the version for a given API request. Current version is 2020-09-17.

Path Parameters

time-off-event-id
string
required

The unique identifier for the time-off event

Body

application/json

Request body for updating an existing time-off event.

Response

201
application/json

Time-off event update initiated

The response is of type object.