Added create_sample to userapi and draft for sample api sample code