add save task event rest api.