cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
320
Views
1
Helpful
1
Replies

Unity Connection 12.5 | CUPI API issue

Nikolay.Ralchev
Level 1
Level 1

Hi Guys,

We are trying to utilize the CUPI API in order to do changes for call handlers and schedules. We are having an issue with the response we get from CUPI in regards of "End of day" value. The problem is that from the API’s response, we can’t determine which holiday has the end-of-day attribute. Please check the attached screenshots and brief explanation below

In the GUI, we have 3 holidays with End of Day checked. Below is the response we get when we look up for EPIC SO_EPIC object.

[3] => Array

                (

                    [URI] => /vmrest/schedules/4628cfa2-d3ba-4c02-9bf5-e7865e6414e4/scheduledetails/4e6d96a0-1010-4d85-91de-5fcbe7d8b30f

                    [ObjectId] => 4e6d96a0-1010-4d85-91de-5fcbe7d8b30f

                    [ScheduleObjectId] => 4628cfa2-d3ba-4c02-9bf5-e7865e6414e4

                    [ScheduleURI] => /vmrest/schedules/4628cfa2-d3ba-4c02-9bf5-e7865e6414e4

                    [IsActiveMonday] => false

                    [IsActiveTuesday] => false

                    [IsActiveWednesday] => false

                    [IsActiveThursday] => false

                    [IsActiveFriday] => false

                    [IsActiveSaturday] => false

                    [IsActiveSunday] => false

                   [StartTime] => 0

                    [EndTime] => 0

                    [StartDate] => 2023-04-11 00:00:00.0

                    [EndDate] => 2023-04-12 00:00:00.0

                    [Subject] => EPIC SO_EPIC

                    [EndOfDay] => false

                )

As you can see End Of Day is False, which it shouldn’t be according to the Cisco Unity GUI, but also the EndTime is 0, where the documentation specify that if we want to create a holiday with an EndOfDay checked checkbox, we should set EndTime to NULL, as NULL represents 11:59:59 PM, ergo the EndTime should also be returned as NULL not 0, because 0 represents also holidays with the EndOfDay unchecked checkbox.

Is there something that we have missed?

How can we know through the API which holidays are EndOfDay.

CUPI documentation we have used: https://www.cisco.com/c/en/us/td/docs/voice_ip_comm/connection/REST-API/CUPI_API/b_CUPI-API/m-schedules.html 

1 Reply 1

davidn#
Cisco Employee
Cisco Employee

Hi Nikolay,

I guess because StartTime/EndTime are of Integer type, NULL is also the same as zero and any positive value represents the number of minutes past midnight. So the documentation is a little bit unclear and need to be corrected. As for the End-Of-Day flag, the API should reflect what is set in the GUI and I think this may be a defect. I'll bring this to the attention of CUC team. Thanks.

Regards,

David