This is not a bug. Think of a PUT more as a replace than an update. Your request defines exactly what you want it to be. If you don't specify a particular field, it will become null or some default value if appropriate. The safest way to do a PUT is to do a GET to fetch the object, change whatever you want to change, then send that in the PUT. Caveat: there are a few endpoints that don't use the exact same object for a GET & PUT and you found one of them. The GET returns a Queue but the PUT takes a QueueRequest. However it's fairly simply to add the fields from a Queue to a new QueueRequest.
------------------------------
Melissa Bailey
Genesys - Employees
------------------------------
Original Message:
Sent: 03-02-2021 00:55
From: Robert Wakefield-Carl
Subject: Platform API Client SDK - RoutingAPI
Rule of thumb:
- Make sure all Required are sent
- Send any information you think you might want to use
In my experience, most calls always have strange entries when you don't supply them. I usually start with the required, check the response and then add on the ones I just might want to have in the future. As for your examples, there are certain dependencies as well which may not show as required, but will be if another part of programming requires the relationship.
------------------------------
Robert Wakefield-Carl
Avtex Solutions, LLC
Contact Center Innovation Architect
robertwc@avtex.com
https://www.Avtex.com
https://RobertWC.Blogspot.com
------------------------------