Added create_sample to userapi