Configure User Federation via REST API?

Does Keycloak support the configuration of User Federations via the REST API? I have viewed the version 10 documentation and do not see support for this.

I would like to utilize the API via Ansible URI module for automatic provisioning and configuration of our Keycloak instance. If API support does not exist, what is the best route to accomplish this? I saw a post regarding kcadm cli and think that may be my best route provided the functionality does not exist as part of the REST api.


Yes, there is support in the REST API. It is a component resource -

Check Keycloak UI (browser network tab), when you are creating/updating User Federation to see proper payload.