Sample api related type

If no related_type is passed in, None is used.  When related_type is None, then handle_file fails to process and causes a python exception because the id field in the returned data is not set.