$sched = @{ >> ScheduleType = 'Monthly' >> DayOfMonth = 16 >> StartTimeHour = 12 >> StartTimeMinute = 0 >> EndTimeHour = 13 >> EndTimeMinute = 0 >> EffectiveStartDate = @{ day= 16; month = "october"; year = 2024 } >> EffectiveExpirationDate = @{ day= 1; month = "november"; year = 2024 } >> } PS C:\Users\ppelletier\Desktop\WUG Patching> Set-WugDeviceMaintenanceSchedule -DeviceID 3668 -Config $sched DEBUG: Starting Set-WUGDeviceMaintenanceSchedule function DEBUG: Request Body: { "schedules": [ { "duration": { "startTime": { "minute": 0, "hour": 12 }, "endTime": { "minute": 0, "hour": 13 } }, "effectiveStartDate": { "day": 16, "year": 2024, "month": "october" }, "monthly": { "repeat": null, "day": 16 } } ] } DEBUG: Sending PUT request to URL: https://s85iwvwugapp01.rha-rrs.ca:9644/api/v1/devices/3668/config/maintenance/schedule DEBUG: Starting Get-WUGAPIResponse function DEBUG: URI: https://s85iwvwugapp01.rha-rrs.ca:9644/api/v1/devices/3668/config/maintenance/schedule DEBUG: Method: PUT DEBUG: Body: { "schedules": [ { "duration": { "startTime": { "minute": 0, "hour": 12 }, "endTime": { "minute": 0, "hour": 13 } }, "effectiveStartDate": { "day": 16, "year": 2024, "month": "october" }, "monthly": { "repeat": null, "day": 16 } } ] } DEBUG: Attempting to invoke REST method. Retry attempt: 0 DEBUG: Invoked REST Method with body. DEBUG: Response received: @{data=} DEBUG: Completed Get-WUGAPIResponse function DEBUG: Set-WUGDeviceMaintenanceSchedule function completed. success ------- True