I’m exploring the REST API to setup some automatic realm creation for integration testing. From the documentation it looks like all fields are optional but that is not true as I get json decoding exceptions in the Keycloak log if I’m missing some fields.
My question then is how do I read the code (I suppose) to figure out what fields are required or not? Also is it possible to update the documentation to reflect this?
By documentation you are talking about Keycloak Admin REST API ? In this case, I think all fields are optional because it is also a return type in which indeed all fields are optional…
Maybe you could get these informations from admin interface ?