Skip to content

Update Actual Time Off

Request

Updates an existing actual time off record. Only supplied fields are changed. Sending null for description clears the value; omitting description leaves it unchanged.

Security
ApiKey
Path
idstring, (uuid)required

ID of the resource

Body
person_idstring or null, (uuid)

The id of the person to whom the actual time off belongs.

recorded_datestring or null, (date)

The date on which the time off was recorded, in YYYY-MM-DD format.

hoursnumber or null, (double)

The number of hours of time off recorded.

time_off_categorystring or null(TimeOffCategory)

The category of time off.

Enum:"personal_time_off""holiday"
descriptionstring or null

Optional notes associated with the actual time off entry.

curl -i -X PATCH \
  'https://developer.getparallax.com/_mock/api-documentation/swagger/v1/actual-time-off/{id}' \
  -H 'Content-Type: application/json-patch+json' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE' \
  -d '{
    "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550",
    "recorded_date": "2019-08-24",
    "hours": 0.1,
    "time_off_category": "personal_time_off",
    "description": "string"
  }'

Responses

OK

Response
No content