def METHOD_NAME(self, request: Request, organization: Organization) -> Response:
    """
    Create a new repository project path config
    ``````````````````
    :param organization:
    :param int projectId:
    :param string repoName:
    :param string defaultBranch:
    :param string stackRoot:
    :param string sourceRoot:
    :auth: required
    """
    if not features.has("organizations:derive-code-mappings", organization):
        return Response(status=status.HTTP_403_FORBIDDEN)
    installation, organization_integration = get_installation(organization)
    if not installation:
        return self.respond(
            "Could not find this integration installed on your organization",
            status=status.HTTP_404_NOT_FOUND,
        )
    try:
        project = Project.objects.get(id=request.data.get("projectId"))
    except Project.DoesNotExist:
        return self.respond("Could not find project", status=status.HTTP_404_NOT_FOUND)
    repo_name = request.data.get("repoName")
    stack_root = request.data.get("stackRoot")
    source_root = request.data.get("sourceRoot")
    branch = request.data.get("defaultBranch")
    if not repo_name or not stack_root or not source_root or not branch:
        return self.respond("Missing required parameters", status=status.HTTP_400_BAD_REQUEST)
    code_mapping = CodeMapping(
        stacktrace_root=stack_root,
        source_path=source_root,
        repo=Repo(name=repo_name, branch=branch),
    )
    new_code_mapping = create_code_mapping(organization_integration, project, code_mapping)
    return self.respond(
        serialize(new_code_mapping, request.user), status=status.HTTP_201_CREATED
    )