Apologies, I guess I'm not sure exactly when the sdk build is triggered.
Original Message:
Sent: 04-21-2026 04:28
From: Jerome Saint-Marc
Subject: What is the meaning of *durationMinutes* versus *dailyDurationMinutes* in an administrative "Time Off"-Request (and other questions about this Request)?
Hello,
I don't think the change has reached prod yet.
That's the OpenAPI/Swagger definition we are using to build the SDKs: https://api.mypurecloud.com/api/v2/docs/swagger
The CreateAdminTimeOffRequest model definition still has dailyDurationMinutes defined as required.
Regards,
------------------------------
Jerome Saint-Marc
Senior Development Support Engineer
Original Message:
Sent: 04-20-2026 13:32
From: Brian Trezise
Subject: What is the meaning of *durationMinutes* versus *dailyDurationMinutes* in an administrative "Time Off"-Request (and other questions about this Request)?
Quick update: The fix should be out, you should be able to bump your version of the SDK to the latest published and the nullability should be fixed. Please let me know if you're still seeing issues
------------------------------
Brian Trezise
Genesys - Employees - Lead Software Engineer
Original Message:
Sent: 04-09-2026 09:30
From: Wolfgang Liebich
Subject: What is the meaning of *durationMinutes* versus *dailyDurationMinutes* in an administrative "Time Off"-Request (and other questions about this Request)?
Hello, Brian,
One additional comment to your answer: We are development with TypeScript, not with raw JavaScript. The dailyDurationMinutes field is marked as mandatory in the CreateAdminTimeOffRequest interface, so I have to set it to something, and it's value must be greater than 5.
With some Typescript trickery I could get the code to run w/o setting dailyDurationMinutes, and the request succeeded - but I think the TypeScript declaration is wrong here and should be fixed, otherwise it is rather hard to get it to compile w/o falling back to raw JavaScript.
Regards,
Wolfgang Liebich
------------------------------
Wolfgang Liebich
Original Message:
Sent: 03-19-2026 13:40
From: Brian Trezise
Subject: What is the meaning of *durationMinutes* versus *dailyDurationMinutes* in an administrative "Time Off"-Request (and other questions about this Request)?
Hi, thanks for reaching out. I spent some time discussing this with the team to make sure I provide an accurate response.
- durationMinutes is an array of numbers, which should have the same number of elements as the fullDayManagementUnitDates resp. partialDayStartDateTimes field. This is, I presume, the number of minutes taken off for each day. Except if we make a mistake and include a Sunday in the list of days to be taken off, then this array must have one item less - how does this array relate to the "dates"-Array then? But ok, including a Sunday is in principle a case of bad input data.
- dailyDurationMinutes is just a number - what does it mean? Especially if the time-off requests are for working days with a non-equal number of working hours? This is a mandatory field, so we must include it, but how does it relate to the previous field?
dailyDurationMinutes is actually not always required (more on that below). This is a bug in the documentation for which I will open a ticket to address. dailyDurationMinutes is a legacy field that we missed updating the documentation for when we added the dailyDuration array.
How this works:
1. If dailyDurationMinutes is specified, and the durationMinutes array is not populated, then dailyDurationMinutes will apply to all days in the request. Additionally, if payableMinutes is not populated, this value will be treated as the de facto payable minutes value for all days in the request.
2. If durationMinutes is populated, dailyDurationMinutes will be ignored and the values from dailyDuration will be used. Note: For this array, if specified it must be exactly equal in size to the fullDayManagementUnitDates array in the request or you will receive a validation error. If you mistakenly add an extra day you'll have to put a 0 for that day or, preferably, update your request to remove that day and try again.
Note that while both fields (should) be marked optional, at least one of the two fields IS required. If neither are provided that will result in a validation error.
There is an additional field, paidMinutes - this is not mandatory, but what are the defaults? Are per default the durationMinutes all paid? Or is the default taken from the ActivityCode?
At last, there is another field in the request, paid (a boolean field) - it is not mandatory. If we do not specify it - is the default value something fixed, or is it taken from the acitvity code, which also contains such a field?
I believe the fields you are referring to is payableMinutes (an array of Integers) and paid, a boolean.
paid is simply a boolean indicating whether the request is considered a paid time off request.
payableMinutes refers to how many minutes of the agent's underlying schedule would have been paid if the time off request weren't present.
If paid is set to false, then the payableMinutes will not be used for computing shift paid time. If set to true and payableMinutes is not set, dailyDurationMinutes will be used. If paid is not specified, then it will default to the value specified by the activity code.
If either durationMinutes or payableMinutes are not provided in the request, then dailyDurationMinutes must be provided; however the preferred pattern is to use durationMinutes and payableMinutesexplicitly.
------------------------------
Brian Trezise
Genesys - Employees - Lead Software Engineer
Original Message:
Sent: 03-18-2026 10:51
From: Wolfgang Liebich
Subject: What is the meaning of *durationMinutes* versus *dailyDurationMinutes* in an administrative "Time Off"-Request (and other questions about this Request)?
The CreateAdminTimeOffRequest structure has fields to specify how many minutes should be taken off.
It also has a field fullDayManagementUnitDates if the whole day is taken off, or partialDayStartDateTimes
for taking off only a part of a day.
But there are two fields to specify the amount of time off to take:
- durationMinutes is an array of numbers, which should have the same number of elements as the fullDayManagementUnitDates resp. partialDayStartDateTimes field. This is, I presume, the number of minutes taken off for each day. Except if we make a mistake and include a Sunday in the list of days to be taken off, then this array must have one item less - how does this array relate to the "dates"-Array then? But ok, including a Sunday is in principle a case of bad input data.
- dailyDurationMinutes is just a number - what does it mean? Especially if the time-off requests are for working days with a non-equal number of working hours? This is a mandatory field, so we must include it, but how does it relate to the previous field?
This is especially confusing for situations where the number of working hours is not the same for each day.
For example, if the working hours are 8.25 on Monday-Thursday, but 5.5 hours on Friday - what should the value of dailyDurationMinutes be?
According to the API, dailyDurationMinutes is mandatory, but durationMinutes is not. If I only specify dailyDurationMinutes - is this interpreted as "this are the durations for each day, they are all the same"?
There is an additional field, paidMinutes - this is not mandatory, but what are the defaults? Are per default the durationMinutes all paid? Or is the default taken from the ActivityCode?
At last, there is another field in the request, paid (a boolean field) - it is not mandatory. If we do not specify it - is the default value something fixed, or is it taken from the acitvity code, which also contains such a field?
Can anyone clarify the meaning(s) of these fields to me?
Thanks in advance,
Wolfgang Liebich
#PlatformAPI
------------------------------
Wolfgang Liebich
------------------------------