Fix the required roles input in the API form.