Code is below:
scopePermissionRepresentation =build(..)
clientResource = getClientResource(..)
clientResource.authorization().permissions().scope().create(scopePermissionRepresentation)
Version of Keycloak Server: 25.0.2
Version of Keycloak Admin Client : 25.0.2
Any help would be highly appreciated. Thanks