Updating saved searches via API

We are running RT version 3.8.9 on MySQL. I have a need to rename a bunch of queues (for several reasons) and have been asked to be update ALL saved searches and find/replace queue names. I haven’t been able to find any good code examples on how this could be done. I have some code that will loop over each user, then loop over each saved search… but I’m stuck on how to replace queue names and save changes.
Any ideas?

Hi,

Saved searches are in Attributes table, so at the end you should get
RT::Attribute object. Access ->Content, do regexps or something else
to rename queues and use SetContent method for update.On Wed, May 18, 2011 at 8:08 PM, JP White jpwhite@hotmail.com wrote:

We are running RT version 3.8.9 on MySQL. I have a need to rename a bunch of
queues (for several reasons) and have been asked to be update ALL saved
searches and find/replace queue names.
I haven’t been able to find any good code examples on how this could be
done. I have some code that will loop over each user, then loop over each
saved search… but I’m stuck on how to replace queue names and save
changes.
Any ideas?

Best regards, Ruslan.