Skip to content
English
  • There are no suggestions because the search field is empty.

PSOhub API - Resource Working Hours

Learn how to update the working hours for a resource via API

With this endpoint, you can update the working hours for a resource and also provide the weeknumber + year when you want this change to apply.

Update working hours

To update the working hours for a resource, use this endpoint.

PATCH https://www.psohubapp.com/rest/psohubapi/v1/workinghours

The following fields need to be sent and are all mandatory

Name

Type

Description

resourceemail

String

The email of the resource's user account in PSOhub

updatefromweeknumber

Integer/Long

Week number, combine with year to determine the period that the change needs to be apply to

updatefromyear

Integer/Long

Combine with weeknumber to set the first week that the change needs to be apply. All future weeks are automatically updated after that

mondayworkinghours

Decimal

Number of hours the resource works that day, 0 if they are not available

tuesdayworkinghours

Decimal

Number of hours the resource works that day, 0 if they are not available

wednesdayworkinghours

Decimal

Number of hours the resource works that day, 0 if they are not available

thursdayworkinghours

Decimal

Number of hours the resource works that day, 0 if they are not available

fridayworkinghours

Decimal

Number of hours the resource works that day, 0 if they are not available

Send the request in the request body , like below:

{
"resourceemail": "jarno@psohub.com",
"updatefromweeknumber": 1,
"updatefromyear": 2025,
"mondayworkinghours": 8,
"tuesdayworkinghours": 4,
"wednesdayworkinghours": 8,
"thursdayworkinghours": 4,
"fridayworkinghours": 8
}