Skip to content

Create Planned Time Off

Request

Creates a new planned time off entry for a person with one or more date allocations.

Security
ApiKey
Body
person_idstring, (uuid)required

The unique identifier of the person associated with this time off.

allocationsArray of objects(TimeOffAllocation)required

The list of date and hours allocations for this time off.

curl -i -X POST \
  https://developer.getparallax.com/_mock/api-documentation/swagger/v1/planned-time-off \
  -H 'Content-Type: application/json-patch+json' \
  -H 'X-API-KEY: YOUR_API_KEY_HERE' \
  -d '{
    "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550",
    "allocations": [
      {
        "date": "2019-08-24",
        "hours": 0.1
      }
    ]
  }'

Responses

Created

Bodyapplication/json
idstring, (uuid)

The unique identifier of the planned time off.

person_idstring, (uuid)

The unique identifier of the person associated with this time off.

allocationsArray of objects(TimeOffAllocation)

The list of date and hours allocations for this time off.

Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "person_id": "087e858e-473c-4f50-b5b0-c1df6c021550", "allocations": [ { … } ] }