PSOhub API: Resource Working Hours
Learn how to update the working hours for a resource via the PSOhub API
Published: 1 June 2026
Audience
-
Admin
Objective
This reference article covers the PSOhub API endpoint for updating a resource's working hours. Use this endpoint to define how many hours a resource works each day of the week, and from which week the change should apply.
Prerequisites
You must have Admin user access in PSOhub.
You must have API access enabled for your PSOhub account.
The resource must already exist as a user in PSOhub with a valid email address.
Update Working Hours
Use this endpoint to update the working hours schedule for a specific resource:
Endpoint
PATCH https://www.psohubapp.com/rest/psohubapi/v1/workinghours
Request fields
All fields are mandatory.
| Name | Type | Description |
|---|---|---|
| resourceemail | String | The email address of the resource's user account in PSOhub. |
| updatefromweeknumber | Integer/Long | The week number from which the change should apply. Combine with updatefromyear to define the start period. |
| updatefromyear | Integer/Long | The year from which the change should apply. Combine with updatefromweeknumber to define the start period. All future weeks are automatically updated from this point. |
| mondayworkinghours | Decimal | Hours the resource works on Monday. Enter 0 if unavailable. |
| tuesdayworkinghours | Decimal | Hours the resource works on Tuesday. Enter 0 if unavailable. |
| wednesdayworkinghours | Decimal | Hours the resource works on Wednesday. Enter 0 if unavailable. |
| thursdayworkinghours | Decimal | Hours the resource works on Thursday. Enter 0 if unavailable. |
| fridayworkinghours | Decimal | Hours the resource works on Friday. Enter 0 if unavailable. |
📌 Note: The week number and year together define the first week the new schedule applies. All subsequent weeks are updated automatically from that point forward.
Example request body
json
{ "resourceemail": "jarno@psohub.com", "updatefromweeknumber": 1, "updatefromyear": 2025, "mondayworkinghours": 8, "tuesdayworkinghours": 4, "wednesdayworkinghours": 8, "thursdayworkinghours": 4, "fridayworkinghours": 8 }