Can I change the filter of a custom field user picker using Rest API?

In the UI I can set the filter to a group and it works fine. Can I do the same with Rest API? And in a connect app?

This seems related or the same question as:

Rest API to update user filters in context configuration of custom field - Forge - The Atlassian Developer Community

Hi, did you find a solution for this?

No, we decided not to go with it.