PSOhub API - Absence or Holiday
Learn how to book absence or holiday via the API
This API endpoint allows you to book absence or holiday, easily filling the scheduler and also automatically syncing to the resource planning.
Create new absence or holiday
To create a new registration, use this endpoint
POST https://www.psohubapp.com/rest/psohubapi/v1/absenceholiday
The following fields need to be sent and are all mandatory
Name |
Type |
Description |
StartDate |
Date/Time |
The start date and time for the absence or holiday. This reflects back in the scheduler so make sure the time is also correct |
EndDate |
Date/Time |
The end date and time for the absence or holiday. This reflects back in the scheduler so make sure the time is also correct |
Title |
String |
Short title to describe the absence or holiday |
EventType |
String |
Holiday, Public_Holiday or Absence |
WorkingHoursAbsent |
Decimal |
How many working hours a resource will not be available. This number is used to calculate the capacity and resource planning |
ResourceEmail |
String |
The email of the resource's user account in PSOhub |
Send the request in the request body , like below:
{
"StartDate": "2025-03-10T09:00:00.000Z",
"EndDate": "2025-03-12T17:00:00.000Z",
"Title": "Days Off",
"EventType": "Holiday",
"WorkingHoursAbsent": 24,
"ResourceEmail": "jarno@psohub.com"
}
Once succesfull, we will return the unique EventID which can be used to update or delete this event (coming soon)
{
"EventID": "2028"
}