Hi all,
I want to change variable holidays in schedules (eg. Easter Sunday).
When trying to use "PutAgentSchedule", I get the following exception:
Error calling PutArchitectSchedule: {"message":"The request could not be understood by the server due to malformed syntax.","code":"bad.request","status":400,"contextId":"c00865ba-40f5-4879-bdf9-9115f9ffcb14","details":[],"errors":[]}
My code is as follows:
string scheduleId = "49efb9e6-9aca-4feb-a9ad-7a7a1443f88b";
Schedule scheduleBody = new Schedule();
scheduleBody.Name = "EasterSunday";
scheduleBody.Version = 10;
scheduleBody.Start = DateTime.Parse("2022-04-17T00:00:00.000", null, DateTimeStyles.None);
scheduleBody.End = DateTime.Parse("2022-04-17T23:59:59.000", null, DateTimeStyles.None);
scheduleBody.Rrule = "";
var returnedSchedule = architectApi.PutArchitectSchedule(scheduleId, scheduleBody);
According to the documentation (https://developer.genesys.cloud/api/rest/client-libraries/dotnet/Schedule) I filled all mandatory fields, and in addition the version field.
What is the correct syntax?
Thanks for your help!