REST api to add jobs