Hello all,
I am attempting to send an invitation via the organization members invite. I am getting back a StatusCode: 400, ReasonPhrase: 'Bad Request'
I am posting a JSON structured as below:
I am posting this to
Could you please let me know if this is the correct post url. or what I am posting incorrectly as I am following from:
@Path("invite-user")
@POST
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
@Tag(name = KeycloakOpenAPI.Admin.Tags.ORGANIZATIONS)
@Operation(summary = "Invites an existing user or sends a registration link to a new user, based on the provided e-mail address.",
description = "If the user with the given e-mail address exists, it sends an invitation link, otherwise it sends a registration link.")
public Response inviteUser(@FormParam("email") String email,
@FormParam("firstName") String firstName,
@FormParam("lastName") String lastName) {
return new OrganizationInvitationResource(session, organization, adminEvent).inviteUser(email, firstName, lastName);
}
Thanks