Add validation before API import from BitBucket Server
Problem
BitBucket Server importer used via the UI and API uses the same logic to import the project + repo, apart from extra validation done (before the import) on the UI and not the API. See comment.
Solution
Consider to add the same validation done in the UI to the API.