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. https://stackoverflow.com/questions/59407067/add-ldap-user-federation-with-kcadm-cli-but-fails-to-show-in-ui-until-any-realm

Thanks

Yes, there is support in the REST API. It is a component resource - https://www.keycloak.org/docs-api/9.0/rest-api/index.html#_component_resource

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